add_color_attribute
Creates a color attribute layer on a mesh, enabling per-corner or per-vertex color data for painting and shading workflows.
Instructions
Add a color attribute (vertex color layer) to a mesh.
Args: object_name: Target mesh object. name: Name for the color attribute. domain: CORNER (per-loop) or POINT (per-vertex). data_type: BYTE_COLOR (0-1 byte) or FLOAT_COLOR (0-1 float).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Color | |
| domain | No | CORNER | |
| data_type | No | BYTE_COLOR | |
| object_name | Yes |