max_run_maxscript
Executes MAXScript in a live 3ds Max session and returns the last expression's value, with optional undo wrapping for scene changes.
Instructions
Execute MAXScript inside Max and return the value of the last expression. (format/print output goes to Max's Listener window; return values instead.) undo=True wraps the code in an undo record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| undo | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |