execute_maxscript
Run MAXScript snippets to access any 3ds Max feature without a dedicated tool. Returns results, and supports wrapping the snippet in a single undo step.
Instructions
直接执行一段 MAXScript 代码并把结果返回。这是万能逃生舱:当没有现成工具时用它访问任意 Max 功能。设置 asOneUndo=true 可让整段代码成为一步撤销。 [English] Execute a MAXScript snippet and return its result. This is the universal escape hatch: use it to reach any Max feature that has no dedicated tool. Set asOneUndo=true to make the whole snippet a single undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 要执行的 MAXScript 代码。 | MAXScript code to execute. | |
| label | No | 撤销步骤名称。 | Undo step label. | |
| asOneUndo | No | 是否把整段代码包成一步撤销(默认否)。 | Wrap the whole snippet in one undo step (default false). |