mat_assign
Assign a material to specified objects or to the current selection in 3ds Max. Handles whole-object assignment; per-face Multi/Sub-Object requires face IDs set separately.
Instructions
把材质赋给对象。可传对象列表,省略则赋给当前选择(assign-to-selection)。Multi/Sub-Object 的逐面分配需要给对象设置面材质 ID,这里只做整体赋值,逐面请配合 poly 工具设置面 ID。 [English] Assign a material to objects; pass a list or omit to assign to the current selection (assign-to-selection). Per-face assignment of a Multi/Sub-Object material requires face material IDs on the object - this tool does whole-object assignment only.
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": {
"material": "<material>"
},
"name": "mat_assign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objects | No | 对象名列表;省略则使用当前选择。 | Object names; omit to use the current selection. | |
| material | Yes | 材质名称。 | Material name. |