run_python
Execute Python inside Blender with bpy, bmesh, mathutils, and NumPy; get stdout plus added, changed, and removed objects with world sizes to catch silent modeling mistakes.
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. 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 |