run_python
Run Python code in 3ds Max's embedded interpreter to automate tasks, modify scenes, or evaluate expressions. Captures output and returns results for immediate integration.
Instructions
Execute arbitrary Python inside 3ds Max's embedded interpreter
(pymxs available as rt). For an expression, its value is returned;
for a statement block, assign to a variable named result to return
something. stdout is captured and returned too.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "run_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |