set_material
Creates and binds an OmniPBR material to a USD prim using a diffuse color plus optional metallic, roughness, and opacity values.
Instructions
Apply a PBR material (OmniPBR) to a prim with color and surface properties.
Creates a material automatically and binds it to the target prim. Color values can be 0-1 floats or 0-255 ints (auto-detected).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | [r, g, b] diffuse colour: 0-1 floats (e.g. [1, 0, 0] for red) or 0-255 ints | |
| opacity | No | 0 transparent to 1 opaque | |
| metallic | No | 0 plastic (dielectric) to 1 metal | |
| prim_path | Yes | Full USD path of the prim, e.g. "/World/Robot" | |
| roughness | No | 0 glossy (mirror) to 1 rough (matte) | |
| material_path | No | The material prim's path; made under /World/Looks/ when empty |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |