copy_keyframes
Copies every keyframe from one property to another with matching dimensionality, preserving timing, values, interpolation, ease, and spatial tangents; optionally shifts time or clears existing keys.
Instructions
Copy every keyframe from a source property to a destination property with FULL fidelity — time (optionally shifted by timeOffset), value, interpolation type (in/out), temporal ease (correct per-property array length), and spatial tangents + auto-bezier on spatial props (Position/Anchor Point). Dest can be in the same comp or another (destComp). clearExisting removes the dest's existing keyframes first. Source and dest value dimensionality must match (2D→2D, 3D→3D, scalar→scalar) or the call errors. Returns { copied, destLayer, destProp, destComp, spatial, easeArrayLength, timeOffset, clearedExisting }.
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": {
"source": "<source>",
"dest": "<dest>"
},
"name": "copy_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| dest | Yes | ||
| source | Yes | ||
| destComp | No | Comp (name or { id: N }) for the dest layer if different from the source comp. Defaults to the source comp. | |
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. | |
| timeOffset | No | Seconds added to every copied key time (shift the copied keyframes). Default 0. | |
| clearExisting | No | Remove all existing keyframes on the dest property before copying. Default false. |