set_node_color
Set a Houdini node's color by specifying RGB values, with each component clamped to [0,1]. Target any node via its path.
Instructions
设置节点颜色(颜色分量自动 clamp 到 [0, 1])。
参数说明:
- node_path: 节点路径。
- r, g, b: 颜色分量;负值 clamp 为 0.0,>1 值 clamp 为 1.0。
返回 dict 包含 path / color / success 三项;
节点不存在时函数会抛 ValueError。
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>",
"node_path": "<node_path>",
"r": "<r>",
"g": "<g>",
"b": "<b>"
},
"name": "set_node_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | Yes | ||
| g | Yes | ||
| r | Yes | ||
| ctx | Yes | ||
| node_path | Yes |