Skip to content

Run Python Embedded

Run Python code in an existing Python environment.

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

For example, when running a graph within Blender, Maya, Houdini, Cinema 4D and others, you can directly import Python modules and packages, like bpy, c4d, hou, and others.

Note: This node works only within the Python package of actrun and won't work if used with the actrun CLI tool.

Inputs#

Port Description
Script
The script to run.
Args
Arguments to pass to the script.
Stdin
Stream to pass to the scripts stdin.

Outputs#

Port Description
Success
Error
Return
Value returned by the main function within the script. Supported return values and types are None, bool, float, and str. Any other data type will throw a runtime error.

ID: run-python@v1