Rendering freezes UI when called via python

I’m trying to automate some common tasks to improve my workflow. I often render a set of stills and then I need to package that set into a .pdf. I can call image magick through os.systen to package the pdf, so that part works fine. But in order to get the script to render and package everything in one go, I have to call the render operator within the script.

problem is, whenever I call the render operator through anything but the buttons in the properties panel, blender just freezes up while it works. I’m getting blender 2.4 flashbacks. I like watching the renders go, or at least having a progress bar.

Anybody have any tips?

Thanks in advance

maybe this helps:
bpy.ops.render.render(‘INVOKE_DEFAULT’)

but if your script waits for the render to finish, it will probably lock blender doing so.

1 Like

Thanks so much! That’s exactly what I needed. The script runs like a dream now.

How do you invoke_Default with animation?

bpy.ops.render.render({‘dict’: “override”},‘INVOKE_DEFAULT’,animation=True)
dict:override is a parameter that allow you to use standard render mode, cause when you use bpy.ops.render.render you are using a different ruotine