execute_python
Run Python scripts inside 3ds Max's embedded interpreter to automate modeling, shading, animation, rendering, and engine export through MCP.
Instructions
在 3ds Max 内置 Python 中执行代码(需要该版本随附 Python)。注意:3ds Max 2020 出厂只有 Python 2.7,2021 及以后是 Python 3。若脚本需要 pymxs,请确认版本支持。 [English] Execute code in the Python interpreter embedded in 3ds Max (if that release ships one). Note: 3ds Max 2020 ships Python 2.7 only, 2021 and later ship Python 3. Check the version if your script needs pymxs.
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": "execute_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 要执行的 Python 代码。 | Python code to execute. |