set_timeline_duration
Set the duration of a Figma Motion timeline to a specified number of seconds. Requires the timeline ID from get_node_motion to target the correct timeline.
Instructions
Set the duration (in seconds, must be > 0) of a Figma Motion timeline. Get the timelineId from get_node_motion (a node's timelines). Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | A node on the timeline (used to resolve the Motion API) | |
| duration | Yes | New timeline duration in seconds (> 0) | |
| timelineId | Yes | Timeline id from get_node_motion |