Python Editor Scripting
Data & ScriptingAutomate the editor with Python: unreal module API, asset manipulation, level automation, batch processing, and AgentUX integration.
/skill python-editor-scripting What This Skill Does
Python Editor Scripting helps you automate the Unreal Editor using Python. This skill covers the unreal module API that gives you programmatic access to every reflected engine class and function, enabling asset operations like batch rename, import, and audit; level operations like spawning and configuring actors; and content pipeline automation for bulk processing workflows. Python scripting is also the bridge that AgentUX uses to control the editor programmatically, translating high-level requests into concrete editor actions.
Covers
- Python Editor Script Plugin setup and execution methods
- The
unrealmodule: accessing engine subsystems from Python - Asset operations: create, import, modify, export, delete, and rename assets
- Level operations: spawn actors, modify properties, and query scene contents
- Editor automation: batch processing, content audit, and naming convention enforcement
- Import pipeline: bulk import of FBX, textures, and audio with custom settings
- Running Python from Output Log, scripts, Blueprint, or command line
- AgentUX integration: Python as the bridge between JSON-RPC commands and editor actions
Does Not Cover
- Runtime Python execution (game code) → Python is editor-only in UE5
- Blueprint visual scripting → Blueprint Basics
- Data Tables for game data → Data Tables
- Project packaging and build automation → Project Packaging
How to Use
Invoke this skill in Claude Code:
/skill python-editor-scripting This skill is also auto-detected when your prompt mentions Python, script, automate, editor utility, batch processing, or pipeline script intent. AgentUX will automatically activate Python Editor Scripting when it recognizes relevant context in your request.
Key Unreal Engine Concepts
| Concept | Description |
|---|---|
unreal module | The Python module providing access to all reflected UE5 classes, functions, and properties via snake_case naming. |
UEditorAssetLibrary | A library of static functions for asset CRUD operations: find, load, rename, duplicate, delete, and save assets. |
UEditorLevelLibrary | A library of static functions for level operations: spawn actors, get all actors, modify transforms, and query the scene. |
UAssetImportTask | A task object for configuring automated asset imports with specific settings for FBX, textures, and other file types. |
ScopedSlowTask | A progress bar wrapper for long-running Python operations that prevents the editor from appearing frozen. |
init_unreal.py | A startup script in Content/Python/ that runs automatically at editor launch for registering custom tools. |
Related Skills
blueprint-basics
Blueprint scripting as a complement to Python editor automation
data-tables
Data Tables for configuration that Python scripts can populate
project-packaging
Build automation and CI/CD pipelines driven by Python scripts
source-control
Source control integration for scripted asset management workflows
What You'll Learn
- How to run Python scripts in the Unreal Editor via the Output Log, file execution, and command line
- How to use the
unrealmodule to find, load, modify, and save assets programmatically - How to spawn and configure actors in a level using Python
- How to build batch import pipelines for FBX, textures, and audio with custom settings
- How to write content audit scripts for naming conventions, unused assets, and oversized textures
- How Python serves as the bridge for AgentUX editor control via JSON-RPC commands