Software:
Unreal Engine 4.20
- Go to:
Edit > Plugins > Scripting
And enable the Python Editor Script Plugin.
* also recommended to enable Editor Scripting Utilities,
And Sequencer Scripting plugins
- Restart the UE4 Editor.
- Open:
Window > Developer Tools > Output Log
- Switch the command-line mode from Cmd to Python, write Python commands and press Enter to execute them:
- Or in Cmd mode, write ‘py‘ with a path to a Python script file, and hit Enter to execute the script:
Links:
- Scripting the Editor using Python:
https://docs.unrealengine.com/en-us/Editor/ScriptingAndAutomation/Python - UE4 Python API reference:
https://api.unrealengine.com/INT/PythonAPI/
Examples:
2 thoughts on “UE4 – Python Scripting – how to start”