Transform a figure
figure_transformMove, rotate, scale, flip, align, center, or reorder figures in StykAnimate and Pivot animation projects, including multiple figures together by UID.
Instructions
Change where a figure sits: move it, rotate it, scale it, flip it, align it with other figures, centre it, or change its draw order. Angles are in degrees and turns anticlockwise. Give "uids" to transform several figures in one step; they move together.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | For "move": how far to move along x, in pixels. | |
| dy | No | For "move": how far to move along y, in pixels. | |
| uid | No | The figure to transform. | |
| axis | No | For "mirror": the axis to flip across. For "align" and "center": the axis to align on. | |
| edge | No | For "align": which edges to line up. | |
| uids | No | Several figures to transform together. | |
| frame | No | The place on the timeline to work on. Defaults to the playhead. | |
| action | Yes | The transform to apply. | |
| factor | No | For "scale": the size factor. 2 doubles the figure. | |
| frames | No | Several keyframes to transform the figure in. | |
| degrees | No | For "rotate": the angle in degrees. | |
| project | No | The id of an open project, from project_open. Defaults to the project used most recently. | |
| direction | No | For "order": which way to move the figure in the draw order. |