i'm try to make an add-on that can render animation sequences.
If I just use a for loop to render every frame in sequence blender freezes completely until the job is finished.
bpy.ops.render.render("INVOKE_DEFAULT")
renders responsively but the script thinks it happened within a millisecond and the loop moves on to the next frame.
The
bpy.app.handlers.render_post
can detect when a render finishes, but I can't figure out how to use it in a loop with a user definable sequence length.
Operations are being done during rendering between the frames, updating values, so using
(animation=True)
won't work
Or if that's completely impossible, could I at least force UI updates to the add-on panel during rendering with
EXEC_DEFAULT
(I mainly want this so that my addon can show the progress percentage in a UI panel. Doing this from the console is not very pretty)