execute_script_headless
Execute Blender Python code in headless subprocess for heavy operations that timeout over socket connections, like complex mesh creation and batch processing.
Instructions
Execute Python code directly in Blender headless mode (no TCP).
Use this for heavy operations that timeout over the socket connection:
Complex bmesh mesh creation (many vertices/faces)
Batch operations on many objects
File import/export operations
Any operation that takes > 2 minutes
The code runs in a fresh Blender instance via subprocess. Variable 'result' will be captured as the return value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No |