Getting a CineCameraActor Reference Object

Hi,

I need an object reference to a CineCameraActor in the world that is bound as a spawnable in the LevelSequencer.

I have a reference to the LevelSequencer itself and a sequencerBindingProxy of the spawnable camera in the LevelSequencer.

I am trying to use the unreal.MovieSceneSequence.locate_bound_objects() function with the first argument being the binding, but I don’t know what I should be using for the second ‘Context’ argument.

I thought I might be able to get this referent from the get_object_template() function as well but that doesn’t return anything.

Any help would be much appreciated!

If you know the name of the actor, and you’re just trying to get the object, you could do this:

  1. Get the current world

current_world = unreal.EditorLevelLibrary.get_editor_world()

  1. Gather the current actors

actors = [actor for actor in unreal.ActorIterator(current_world)]

  1. Find your actor

for actor in actors:
if actor.get_name() == “CineCameraX”:
camera_actor_object = actor

Hope this helps!