appearance_set_color
Assigns a plain RGBA color to a body, face, or occurrence via a design appearance copy, reusing identical copies and leaving library appearances unchanged.
Instructions
Give a body, a face or an occurrence a plain colour: a design copy of base (or
of the target's current appearance) with the RGBA colour is assigned. An identical
copy made earlier is reused ("created": false). Library appearances are not changed.
Returns {"target", "appearance": {"id", "name", "library": "design"}, "created", "color": "#RRGGBBAA"}.
Example: appearance_set_color(target="", color="#FF0000").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Appearance id/name to copy; default: the target's appearance | |
| name | No | Name of the design appearance; default "MCP <base> #RRGGBB" | |
| color | Yes | "#RRGGBB", "#RRGGBBAA" or [r, g, b] / [r, g, b, a] with 0..255 | |
| target | Yes | Ref of a body, a face or an occurrence (not a component) |