#๐Ÿ”’ Keeping a Subprocess open in the background, then killing it after my task is complete

8 messages ยท Page 1 of 1 (latest)

nimble iris
#

So, I have a render program I built in Python. The main issue I have with this render program is thatBlender in the command line (called through subprocess) restarts after every. single. frame.

This absolutely tanks render times, so I was thinking if there was a way to force it to stay open while it renders everything, while keeping the progress bars updated. I did Google this, and it suggested I used my computer as a connectable server with Blender's in-program script editor, but I don't know if I can do that because of my computer's specs and limitations with my setup.

What other solutions are there? Here's my code: https://paste.pythondiscord.com/Y4OA

scarlet glenBOT
#

@nimble iris

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

broken orbit
#

I'm not too sure, ive never really tried doing rendering with the inbuilt python api and editor,
but wouldn't running the program inside of blender using bpy fix that issue?

#

or do you want to program to be cli only

nimble iris
#

I'm trying to render like multiple shots one after the other, and bpy is being very awkward with that, so I'd perfer it to be in cmd

broken orbit
#

im not sure how you'd be able to do that

scarlet glenBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.