run_python
Execute Python code inside Cascadeur’s GUI thread to access csc, app, scene, view_scene, and ui; returns stdout and the value of an expression or result variable.
Instructions
Run Python inside Cascadeur on the GUI thread with csc, app, scene (domain scene), view_scene and ui in scope. Returns stdout and the value of a lone expression or of a variable named result. scene.modify*/edit return False when their callback failed; check it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No | Seconds to wait (default 60, max 600). |