execute_blender_code
Run Python code directly in Blender's environment to automate modeling, editing, and rendering tasks, and return results via a JSON-serialisable 'result' variable.
Instructions
Execute Python code in the connected Blender instance.
The code runs in Blender's Python environment with full access to bpy.
To return data, assign a JSON-serialisable dict to a variable named result.
Deferred completion via check_is_finished is only supported by the
interactive addon server, and is rejected in background mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||