Download

How CineCameraActor to added to world by Python

Hi. I’m newbie

How CineCameraActor to added to world by Python?


camera = unreal.CineCameraActor()
camera_location = unreal.Vector(0.0, 0.0, 0.0)
camera_rotation = unreal.Vector(0.0, 0.0, 0.0)
camera_scale = unreal.Vector(1.0, 1.0, 1.0)

And what to do next?
Is it possible to add a CineCameraActor to a world by Python without dragging it from the Modes panel?

Thanks.

I find it myself. Next:


actor_class = camera.get_class()
camera_on_scene = unreal.EditorLevelLibrary.spawn_actor_from_class(actor_class, camera_location)