td_exec
Run Python code within TouchDesigner and retrieve its output, using the full td namespace for live automation and inspection.
Instructions
Run Python inside TouchDesigner and return its output.
The full td namespace is in scope (op, ops, root, project, ui, app,
families, operator type classes). A trailing expression, or a variable named
result, is returned. Reach for the structured tools first — this blocks
TouchDesigner's main thread while it runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |