Python Editor Scripting

Data & Scripting

Automate the editor with Python: unreal module API, asset manipulation, level automation, batch processing, and AgentUX integration.

Version: 5.0.0 – 5.7.3 | Invoke: /skill python-editor-scripting

← All Skills

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 unreal module: 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 moduleThe Python module providing access to all reflected UE5 classes, functions, and properties via snake_case naming.
UEditorAssetLibraryA library of static functions for asset CRUD operations: find, load, rename, duplicate, delete, and save assets.
UEditorLevelLibraryA library of static functions for level operations: spawn actors, get all actors, modify transforms, and query the scene.
UAssetImportTaskA task object for configuring automated asset imports with specific settings for FBX, textures, and other file types.
ScopedSlowTaskA progress bar wrapper for long-running Python operations that prevents the editor from appearing frozen.
init_unreal.pyA startup script in Content/Python/ that runs automatically at editor launch for registering custom tools.

Related Skills

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 unreal module 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