create_material_network
Create a material network (matnet) under a specified parent, validating that the parent exists, is unlocked, and supports SOP nodes. Provides structured error handling for invalid parents.
Instructions
在 parent 下创建 matnet(add-scene-context-selection-materials,MUTATING)。
验证 parent 存在、未锁定、childTypeCategory 为 Sop 后调
``createNode("matnet", name)``;错误结构化区分
``parent_not_found / parent_locked / unsupported_parent_
category / node_type_unavailable``。此 tool 归
``MUTATING_COMMANDS``,server handler 通过
``hou.undos.group`` 入 undo group。响应过 server 端
``apply_response_cap``。
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": {
"ctx": "<ctx>",
"parent_path": "<parent_path>"
},
"name": "create_material_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| name | No | mat | |
| parent_path | Yes |