sculpt_color_attribute
Manage vertex colors for sculpt-mode painting: create, fill, paint spheres, apply gradients, bake curvature or ambient occlusion to mesh.
Instructions
Manage vertex colors for sculpt-mode painting.
action: 'create' — Create a new color attribute 'fill' — Fill entire mesh with a color 'paint_sphere' — Paint color in a sphere region 'gradient' — Apply gradient along an axis 'curvature_color' — Color by surface curvature (for visualization) 'ao_vertex_color' — Bake simple ambient occlusion to vertex colors
color: JSON [R, G, B, A] (0.0-1.0). params: For paint_sphere: {"center": [x,y,z], "radius": 0.1} For gradient: {"axis": "Z", "color_start": [r,g,b,a], "color_end": [r,g,b,a]} For ao_vertex_color: {"samples": 16, "distance": 0.5}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | [1.0, 1.0, 1.0, 1.0] | |
| action | No | fill | |
| params | No | {} | |
| mesh_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |