# Unreal Engine Livestream - Python in Unreal Engine - May 30 - Live from HQ

**URL:** <https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592>\
**Category:** Announcements\
**Tags:** unreal-engine\
**Created:** [May 24, 2019, 9:14pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592 "2019-05-24T21:14:03Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [May 24, 2019, 9:14pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/1 "2019-05-24T21:14:03Z")

</div>

![190530.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/a/ca88cb1ae39a2bbb1b5acd95b32296783515655e.jpeg)

**WHAT**  
On this week’s livestream, Jamie Dale and Aaron Carlisle are joining us to demonstrate how you can use Python in Unreal Engine to automate processes in the editor. They will walk us through how to get started, provide some examples on how we’ve used it internally, and answer questions regarding the topic.

**WHEN**  
Thursday, May 30 @ 2:00PM ET - [Countdown](https://www.timeanddate.com/countdown/generic?iso=20190530T14&p0=207&msg=Unreal+Engine+livestream&font=slab)

**WHERE**  
[Twitch](http://www.twitch.tv/unrealengine)  
[Youtube](https://www.youtube.com/user/UnrealDevelopmentKit)

**RESOURCES**  
[Demo Files](https://github.com/abcarlisle/UnrealDev/tree/master/Python)  
[Python in Unreal Engine](https://docs.unrealengine.com/en-US/Engine/Editor/ScriptingAndAutomation/Python/index.html)  
[Python API Docs](https://api.unrealengine.com/INT/PythonAPI/)

**WHO**  
Jamie Dale - Senior Programmer, UK - @jdale88]([http://twitter.com/jdale88](http://twitter.com/jdale88))  
Aaron Carlisle - Pipeline Developer - @aaronbcarlisle]([http://twitter.com/aaronbcarlisle](http://twitter.com/aaronbcarlisle))  
Victor Brodin - Community Manager - @victor1erp]([http://twitter.com/victor1erp](http://twitter.com/victor1erp))

**NEWS**

\*\*Ray tracing for architectural visualization: webinar replay \*\*  
[https://www.unrealengine.com/en-US/b…webinar-replay](https://www.unrealengine.com/en-US/blog/ray-tracing-for-architectural-visualization-webinar-replay)

\*\*Learn how Drifter Entertainment leveraged elegant optimizations to bring Robo Recall to the Oculus Quest \*\*  
[https://www.unrealengine.com/en-US/d…e-oculus-quest](https://www.unrealengine.com/en-US/developer-interviews/learn-how-drifter-entertainment-leveraged-elegant-optimizations-to-bring-robo-recall-to-the-oculus-quest)

\*\*Demand for Unreal Engine and real-time 3D skills at all-time high \*\*  
[https://www.unrealengine.com/en-US/b…-all-time-high](https://www.unrealengine.com/en-US/blog/demand-for-unreal-engine-and-real-time-3d-skills-at-all-time-high)

\*\*A new look for the Unreal Engine documentation \*\*  
[https://www.unrealengine.com/en-US/b…-documentation](https://www.unrealengine.com/en-US/blog/a-new-look-for-the-unreal-engine-documentation)

\*\*Splitgate: Arena Warfare infuses elements of Halo and Portal to create a new breed of FPS \*\*  
[https://www.unrealengine.com/en-US/d…w-breed-of-fps](https://www.unrealengine.com/en-US/developer-interviews/splitgate-arena-warfare-infuses-elements-of-halo-and-portal-to-create-a-new-breed-of-fps)

\*\*Unreal E3 Awards 2019 Announced \*\*  
[https://www.unrealengine.com/en-US/b…tel-and-nvidia](https://www.unrealengine.com/en-US/blog/announcing-the-unreal-e3-awards-2019-sponsored-by-intel-and-nvidia)

**COMMUNITY SPOTLIGHT**

**Scionti Design**  
[https://www.sciontidesign.com/](https://www.sciontidesign.com/)

**XERA: Survival**  
[https://store.steampowered.com/app/6…XERA\_Survival/](https://store.steampowered.com/app/625340/XERA_Survival/)

\*\*Alluris \*\*[Alluris Announcement Trailer - YouTube](https://youtube.com/watch?v=HA41aZXQ7Iw)

**ARCHIVE  
 [Python in Unreal Engine | Inside Unreal - YouTube](https://youtube.com/watch?v=0guOMTiwmhk)**

---

<div class="post-metadata">

**Author:** ![ClearlyUnified](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClearlyUnified](https://forums.unrealengine.com/u/ClearlyUnified)\
**Post date:** [May 29, 2019, 7:08am UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/2 "2019-05-29T07:08:08Z")

</div>

Yes! Have been waiting for this topic for ages! This stream is got to be the most useful one for in a long time

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [May 29, 2019, 8:38am UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/4 "2019-05-29T08:38:47Z")

</div>

Python have its own set of “objects”, separate from the Blueprint world, and its own garbage collection issues…

In a reality where even UMG menus can cause performance impact (some projects are forced to fallback to Slate UI, I’ve seen this), a Python runtime is yet one more big problem engineers have to somehow fit in the 16ms of a frame. I don’t know if Epic would consider that a good idea.

---

<div class="post-metadata">

**Author:** ![Narsoi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Narsoi](https://forums.unrealengine.com/u/Narsoi)\
**Post date:** [May 29, 2019, 12:12pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/5 "2019-05-29T12:12:42Z")

</div>

YES! Each week I’m hoping this will be next 🙂 thanks for listening.

---

<div class="post-metadata">

**Author:** ![Cronofear\_Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cronofear\_Dev](https://forums.unrealengine.com/u/Cronofear_Dev)\
**Post date:** [May 29, 2019, 4:38pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/6 "2019-05-29T16:38:09Z")

</div>

> [@ClavosTech](#):
>
> Dear Epic, How about the wider uses of Python outside the Editor (and Datasmith etc)?  
> Will Python be the gameplay coding / scripting tool of the future? [TimSweeney-reddit](https://www.reddit.com/r/unrealengine/comments/aezhdv/it_seems_people_at_epic_are_considering_adding/)]…  
> Or is _SkookumScript going to fill that role_? Give us some clues / hints, so we can plan! 😉

They technically open sourced Skookum Script so my guess is that a new language using SK tech is being cooked right now. Skookum Script doesn’t use a Virtual Machine and compiles to C++ data structures (kind of) so the performance is almost close to C++. It also behaves like a scripting language so it completely obliterates python in regards to gameplay programming.

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [May 29, 2019, 10:20pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/7 "2019-05-29T22:20:27Z")

</div>

Epic say they are also working on a new VM.  
So there’s a lot of things going on they didn’t explain yet.

---

<div class="post-metadata">

**Author:** ![AyanMiru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayanmiru/32/1194638_2.png) [@AyanMiru](https://forums.unrealengine.com/u/AyanMiru)\
**Post date:** [May 30, 2019, 6:02am UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/8 "2019-05-30T06:02:07Z")

</div>

> [@ClavosTech](#):
>
> Dear Epic, How about the wider uses of Python outside the Editor (and Datasmith etc)?  
> Will Python be the gameplay coding / scripting tool of the future? [TimSweeney-reddit](https://www.reddit.com/r/unrealengine/comments/aezhdv/it_seems_people_at_epic_are_considering_adding/)]…  
> Or is _SkookumScript going to fill that role_? Give us some clues / hints, so we can plan! 😉

Meantime you can out UnrealEnginePython plugin:

> **[GitHub - 20tab/UnrealEnginePython: Embed Python in Unreal Engine 4](https://github.com/20tab/UnrealEnginePython)**
>
> Embed Python in Unreal Engine 4. Contribute to 20tab/UnrealEnginePython development by creating an account on GitHub.

Just trowing it in, in case someone is looking to implement some python in their projects. It’s pretty mature UE4 python implementation already, can be used in editor AND at runtime in packaged projects.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [May 30, 2019, 9:37pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/9 "2019-05-30T21:37:33Z")

</div>

> [@](#):
>
> Can I use this to write a script to associate FText objects with string table ids? Because that would be aces

I realised I answered this question backwards… I thought I’d been asked whether you could make a String Table from FText instances.

Yes, you can do that. You can use unreal.LOCTABLE to create an FText that references a String Table entry.

> [@](#):
>
> Is the IPythonScriptPlugin OnPythonInitialized callback working? I need to do some setup after the python plugin is initialized but I could not get it to work. I’m adding a static function

To follow-up from my on-stream answer… that delegate seems broken for external use. The delegate is called when Python is initialized as the module is loaded, so if IPythonScriptPlugin::Get() returns a valid pointer then Python has already been initialized, and if it doesn’t then there’s nothing you can bind to for callback later. I’ll look at either fixing or removing that.

---

<div class="post-metadata">

**Author:** ![reza.darooei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reza.darooei](https://forums.unrealengine.com/u/reza.darooei)\
**Post date:** [June 3, 2019, 11:13am UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/10 "2019-06-03T11:13:00Z")

</div>

Hi, I have a question, is it possible to import and use other libraries such as numpy or other machine learning libraries?

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [June 3, 2019, 3:05pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/11 "2019-06-03T15:05:38Z")

</div>

> [@reza.darooei](#):
>
> is it possible to import and use other libraries such as numpy or other machine learning libraries?

I don’t see why not. They just need to be compatible with stock CPython.

---

<div class="post-metadata">

**Author:** ![varomix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@varomix](https://forums.unrealengine.com/u/varomix)\
**Post date:** [June 24, 2019, 9:50pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/12 "2019-06-24T21:50:38Z")

</div>

Hi  
Are the source files used in this talk available somewhere?  
thank you very much

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_341971f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_341971f9](https://forums.unrealengine.com/u/anonymous_user_341971f9)\
**Post date:** [August 9, 2019, 9:43am UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/15 "2019-08-09T09:43:30Z")

</div>

Hi, great presentation.  
Could you give us a link to download Python sources of the presentation, specially the sequencer please ?

---

<div class="post-metadata">

**Author:** ![benicourt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@benicourt](https://forums.unrealengine.com/u/benicourt)\
**Post date:** [August 9, 2019, 9:44am UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/16 "2019-08-09T09:44:53Z")

</div>

Same question, we’d like to test and study python code, specially for the sequencer. Thank you.

---

<div class="post-metadata">

**Author:** ![AssetDK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AssetDK](https://forums.unrealengine.com/u/AssetDK)\
**Post date:** [January 23, 2020, 4:55pm UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/18 "2020-01-23T16:55:05Z")

</div>

> [@Aaron Carlisle](#):
>
> to Aron or perhaps Jamie?

Thanks for a great tutorial, I am totally not getting all of the stuff regarding exposing C++, but I will get there!

I have a somewhat related question regarding “post processing” the compile or save actions - in the editor. Specifically I would like to make a small plugin that can generate and expose specific Blackboard get/set\_key\_values, as suggested in this feedback i made: **[Setting Blackboard key values, debug and suggestion!](https://forums.unrealengine.com/unreal-engine/feedback-for-epic/1709373-setting-blackboard-key-values-debug-and-suggestion)** ( I hard coded the functions, but it would be relatively simple to archive the very same thing dynamically - in C++ or via Python. As we are not able to add BP to a blackboard, the code was placed at the AI Controller. )

\*\*In general I assume that there is a limit to how much of this that can be done in Python… but perhaps you can direct me to sample code for doing something like this - I hope you get the “gist”… and the challenge? \*\*

My general game plan would be to make a subclass of Blackboard and/or BlackboardData that can dynamically create/expose the get/set\<value\> functions. Say a general function _‘set Action Status’_ (in this case Action Status is an ENUM, so there should also be a specific ‘\*set Action Status Running’ \*function) should appear dynamically, when I cast to an instance of my specific blackboard asset (BB\_asset). (This is as an more solid alternative to actually generating blueprints, as suggested in the feed back… )

For this to happen I would - at least - need to:

- “post process” the key(s) when a new key is set up or when the blackboard is saved

- be able to add new get/setFunctions to the action/function list, UE4 must contain some general ways of doing that dynamically… when building the action lists?

- Like the BlackboardKeySelector function, as it is used in Behavior trees.

- I guess this could even be accomplished by adding some new dynamic functions to the backboard data/blackboard key types.

However when I drag from a Blackboard variable I am not able to cast to my BB\_asset - so I also need to enable that for my subclass of Blackboard? (As for the cast to a Child-of-character can be done “dynamically”, I guess it should be possible to cast to BB\_asset (however we are not allowed to make a child of Behavior tree or blackboard).

I imagine that much of this can be done in, or at least triggered by, Python, however I would probably need to catch the save/built/compile event for the Blackboard… and I don’t see that there is a way for Python to catch such the event…

In general I think we need an library of small, and relatively simple, examples… for such tasks?

An even more simple extension, would be a new ‘make literal name’ that could take a specific BB as input, so you could select the correct BB\_key from a drop down list. (I can cast to BlackboardData but in BP I can not get the reference to BlackboardData from the Blackboard?)

---

<div class="post-metadata">

**Author:** ![Ijaz\_Naeem\_Ahmad](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ijaz_naeem_ahmad/32/1107035_2.png) [@Ijaz\_Naeem\_Ahmad](https://forums.unrealengine.com/u/Ijaz_Naeem_Ahmad)\
**Post date:** [February 5, 2020, 9:04am UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/19 "2020-02-05T09:04:21Z")

</div>

whats my epic ID

---

<div class="post-metadata">

**Author:** ![AaronCarlisle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AaronCarlisle](https://forums.unrealengine.com/u/AaronCarlisle)\
**Post date:** [July 22, 2021, 6:11am UTC](https://forums.unrealengine.com/t/unreal-engine-livestream-python-in-unreal-engine-may-30-live-from-hq/126592/20 "2021-07-22T06:11:19Z")

</div>

Here’s the demo files updated for UE5 which also includes the stub file and instructions on how to set it up for auto-completion.

> **[GitHub - abcarlisle/unreal-python-dev: This repository contains some simple...](https://github.com/abcarlisle/unreal-python-dev)**
>
> This repository contains some simple Python utility scripts for UE5, and the unreal stub file with directions on how to set it up for auto-completion. I'm hoping it'll grow over time and be...
