set_keyframe_track
Add or replace a manual keyframe track on a node to animate properties like position, rotation, scale, opacity, or color over time.
Instructions
Add or replace one manual keyframe track on a node. field is a property name (TRANSLATION_X/Y/XY, ROTATION, SCALE_X/Y/XY, OPACITY, CORNER_RADIUS, STROKE_WEIGHT, WIDTH, HEIGHT, STACK_* / GRID_* spacing, PATH_TRIM_START/END) or FILLS/STROKES/EFFECTS with a paintIndex. Transform fields COMPOSE with the node's resting transform (neutral 0, or 1 for scale); the others replace the value. timelinePosition is in seconds; the first keyframe's value holds back to t=0 and the last holds to the end, so no padding keyframes are needed. Easing on a keyframe describes the move INTO it, and adds 'HOLD' for step interpolation. The containing timeline is extended when the animation runs past it unless extendTimeline is false. Animate descendants: a top-level frame owns the timeline rather than animating on it, so keyframes there do nothing and are refused unless allowTopLevelFrame is true. Color and effect animation uses field FILLS, STROKES, or EFFECTS together with paintIndex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| track | No | ||
| nodeId | Yes | ||
| keyframes | No | ||
| paintIndex | No | ||
| extendTimeline | No | ||
| allowTopLevelFrame | No |