cavalry_set_keyframe
Set animation keyframes on a layer at a given frame by specifying attribute values. Use this to define motion properties such as position or scale.
Instructions
Sets an animation keyframe for attributes on a layer at a given frame number using Cavalry's official api.keyframe(layerId, frame, { attr: value }) API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | The frame number where the keyframe should be set. | |
| layerId | Yes | The layer ID. | |
| attributes | Yes | Key-value dictionary of attributes and their values at this keyframe (e.g. {'position.y': 50, 'scale.x': 1.25}). |