set_object_material_color
Assign a RGBA color to an object's material in Blender. Creates a material if the object has none.
Instructions
Set the Principled BSDF base colour of an object's material. Creates the material if one does not exist.
Parameters:
name: Object name
r, g, b, a: Colour channels in 0..1 range
material_index: Which material slot to update (default 0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| r | No | ||
| g | No | ||
| b | No | ||
| a | No | ||
| material_index | No |