Execute Python Command (Advanced)

Execute Python Command (Advanced)

Windows
MacOS
Linux

Execute the given Python command.

Target is Python Script Library

Execute Python Command (Advanced)
Python Command
Execution Mode
ExecuteFile
File Execution Scope
Private
Command Result
Log Output
Return Value

Inputs

In
Exec
Python Command
String

The command to run. This may be literal Python code, or a file (with optional arguments) that you want to run.

Execution Mode
EPythonCommandExecutionMode Enum

Controls the mode used to execute the command.

File Execution Scope
EPythonFileExecutionScope Enum

Controls the scope used when executing Python files.

Outputs

Out
Exec
Command Result
String

The result of running the command. On success, for EvaluateStatement mode this will be the actual result of running the command, and will be None in all other cases. On failure, this will be the error information (typically a Python exception trace).

Log Output
Array of Python Log Output Entry Structures

The log output captured while running the command.

Return Value
Boolean

true if the command ran successfully, false if there were errors.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback