Change appearance
style_setChange figure, part, layer, or scene colors and opacity, and adjust part thickness, across keyframes or at the playhead.
Instructions
Change how something looks: the colour or opacity of a figure, the colour or thickness of one of its parts, the colour of a layer, or the colour behind the scene. A figure colour applies to every keyframe the figure appears in. A part colour changes the shared figure definition, so every instance of it changes too. Give a colour as "#rrggbb" or as three red, green and blue bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | For "figure" and "part": the figure instance. | |
| color | No | The new colour. For a figure, a part or the scene: "#rrggbb" or three RGB bytes. For a layer: a palette name (blue, violet, rose, orange, green, teal); a colour is matched to the nearest one. | |
| frame | No | The place on the timeline to work on. Defaults to the playhead. | |
| frames | No | For "figure": only these keyframes. | |
| target | Yes | What to restyle. | |
| layerId | No | For "layer": the layer to restyle. | |
| opacity | No | The new opacity, from 0 to 1. | |
| project | No | The id of an open project, from project_open. Defaults to the project used most recently. | |
| handleId | No | For "part": the joint whose segment to restyle. | |
| thickness | No | For "part": the new thickness of the segment. |