Skip to content

Run Python Embedded

Executes Python code within the application's embedded environment.

The Run Python Embedded node directly executes Python scripts within the host application's embedded Python environment, providing access to all its modules.

For example, when running a graph within Blender, Maya, Houdini, or Cinema 4D, you can directly import their specific Python modules like bpy, maya.cmds, hou, or c4d.

Note: This node requires actrun to be executed from within a Python environment and will not work with the standalone actrun command-line tool.

Inputs#

Port Description
Script
The Python script to execute.
Args
This input is currently not used.
Stdin
This input is currently not used.

Outputs#

Port Description
Success
Executes on successful script completion.
Error
Executes if an error occurs during script execution.
Return
The return value from the script. If the script returns None, this output will be an empty string. Supported Python return types are None, bool, float, and str. Any other data type will cause a runtime error.

ID: core/run-python@v1