run_python
Execute Python inside a live Blender session to build or inspect 3D scenes, returning stdout plus added, changed, and removed objects with world sizes so errors surface.
Instructions
Run Python in Blender (bpy, bmesh, mathutils, Vector, np, math are ready). Returns stdout, and the added,
changed and removed objects with their world sizes, so silent mistakes show up. Prefer the other tools for
moving, sizing and checking. The tool descriptions are the documentation: do not read the add-on source here. With session the variables, functions and imports stay between calls under that
name (reset=true clears them; rollback clears all sessions). paths are folders added to the import path:
keep your helper modules there and import them once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| paths | No | ||
| reset | No | ||
| session | No |