Animate a clip transform property
animate_clip_transformAnimates one motion or opacity property of a video clip from one value to another over a time range with easing, adding two keyframes and replacing existing ones for that property.
Instructions
Animate one Motion/Opacity property of a video clip from a value to a value between two times, with easing. Properties and units: position [x, y] and anchor_point [x, y] (pixels or normalised per units, as in set_clip_position / set_clip_anchor_point), scale (percent), rotation (degrees), opacity (percent). Adds two keyframes; existing keyframes of that property between start and end are replaced, others are kept. Returns the property's keyframes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"property": "<property>",
"from": "<from>",
"to": "<to>"
},
"name": "animate_clip_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End value: a number, or [x, y] for position / anchor_point. | |
| end | No | End time in seconds (see time_base). Default: the clip's end. | |
| from | Yes | Start value: a number, or [x, y] for position / anchor_point. | |
| start | No | Start time in seconds (see time_base). Default 0 = clip start. | |
| units | No | Unit of x/y. "pixels" (default): sequence-frame pixels for position (0,0 = top-left of the frame), source-frame pixels for the anchor point. "normalized": 0-1 fractions of the same frame (0.5, 0.5 = centre). | |
| easing | No | Speed curve of the move. "linear" (default): constant speed. "ease_in": starts slowly and speeds up. "ease_out": starts fast and slows into the end value. "ease_in_out": slow at both ends. "hold": keeps the start value, then jumps to the end value at the end time. | |
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| property | Yes | Property to animate. | |
| time_base | No | How start/end are measured. "clip" (default): seconds from the clip's start on the timeline (0 = first frame of the clip). "sequence": seconds on the timeline. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |