# How to automatically create multiple CineCameraActors by executing external python scripts in UE5

**URL:** <https://forums.unrealengine.com/t/how-to-automatically-create-multiple-cinecameraactors-by-executing-external-python-scripts-in-ue5/869242>\
**Category:** Programming & Scripting\
**Tags:** Python, unreal-engine, question, Blueprint\
**Created:** [April 7, 2023, 6:12am UTC](https://forums.unrealengine.com/t/how-to-automatically-create-multiple-cinecameraactors-by-executing-external-python-scripts-in-ue5/869242 "2023-04-07T06:12:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FunnyCharly](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/funnycharly/32/953985_2.png) [@FunnyCharly](https://forums.unrealengine.com/u/FunnyCharly)\
**Post date:** [April 7, 2023, 6:12am UTC](https://forums.unrealengine.com/t/how-to-automatically-create-multiple-cinecameraactors-by-executing-external-python-scripts-in-ue5/869242/1 "2023-04-07T06:12:12Z")

</div>

I want to automatically generate multiple CineCameras in UE5 by executing an external python script, and the location, rotation, and focal length of each camera can be set in the python script. Please provide specific details that can be run directly python code, thanks!

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [April 7, 2023, 8:07am UTC](https://forums.unrealengine.com/t/how-to-automatically-create-multiple-cinecameraactors-by-executing-external-python-scripts-in-ue5/869242/2 "2023-04-07T08:07:18Z")

</div>

Hey there @FunnyCharly! I don’t work with the Python API too often myself, so here’s some resources on showing how to spawn actors in the scene, as well as adjust variables on those actors.

**Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.**

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/f/9df8a9a03409f94a746d6615b72da6039e56e8ef.jpeg "UE 4.21 - How To Spawn Actors In World With Python") ](https://www.youtube.com/watch?v=UGnbx7iNMBQ)

> [@Can you edit a Blueprint Variable from Python?](https://forums.unrealengine.com/t/can-you-edit-a-blueprint-variable-from-python/123147/3):
>
> You can, but you need to set them on the Class Default Object (CDO) of the Blueprint Generated Class (BPGC), rather than the Blueprint asset itself (which is just a definition of how to build the BPGC). This requires the Blueprint asset itself to be compiled and up-to-date: # get the generated class of the Blueprint (note the \_C) bp\_gc = unreal.load\_object(None, "/Game/MyBP.MyBP\_C") # get the Class Default Object (CDO) of the generated class bp\_cdo = unreal.get\_default\_object(bp\_gc) # set the …

> **[unreal.Actor — Unreal Python 4.27 (Experimental) documentation](https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/class/Actor?application_version=4.27)**

---

<div class="post-metadata">

**Author:** ![FunnyCharly](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/funnycharly/32/953985_2.png) [@FunnyCharly](https://forums.unrealengine.com/u/FunnyCharly)\
**Post date:** [July 11, 2023, 2:48am UTC](https://forums.unrealengine.com/t/how-to-automatically-create-multiple-cinecameraactors-by-executing-external-python-scripts-in-ue5/869242/3 "2023-07-11T02:48:40Z")

</div>

Solved

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 10, 2023, 2:49am UTC](https://forums.unrealengine.com/t/how-to-automatically-create-multiple-cinecameraactors-by-executing-external-python-scripts-in-ue5/869242/4 "2023-08-10T02:49:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
