I use method “unreal.SequencerTools.render_movie” to render several movies. I want to change the camera’s location, so that I can get different movies. But the result is that all the movie are the same, and it is all the perspective under the first location. Here is the code. (UE5 python api)
get_actor_by_name('viewcamera')
camera_location = pos_list[i]
camera.set_actor_location(camera_location, sweep=False, teleport=True)
global on_finished_callback
on_finished_callback = unreal.OnRenderMovieStopped(
lambda s: render(pos_list, i + 1, starttime, sequence_name, j))
unreal.SequencerTools.render_movie(capture_settings, on_finished_callback)