I noticed that 4.22 has a callback for the movie render which seems useful but I don’t really know how to use it. I would like to have the callback call a function with arguments so I could make a batch renderer. Something like this:
sequences = unreal.EditorAssetLibrary.list_assets("/Game/Cinematics/Sequences/
def on_render_movie_finished(success, sequence_index):
sequence_index += 1
This doesn’t work though because on_finished_callback.bind_callable(on_render_movie_finished) only takes a single argument. Is there another way to accomplish this?
Edit: for now I made a global variable with the sequence index, kind of ugly but works I guess…