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。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | Yes | ||
| g | Yes | ||
| r | Yes | ||
| ctx | Yes | ||
| node_path | Yes |