Copy keyframes
copy_keyframesCopy keyframes with easing, tangents, and roving from one layer property to matching properties on other layers or comps; shift timing, paste at a set time, or replace existing keys.
Instructions
Copy keyframes (with ease, tangents, roving) from one layer's property to the same property path (or targetProperty) on other layers, optionally in another comp. Shift them with timeOffset, or paste so the first copied key lands at pasteAt. replace=true clears the target's keys first.
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": {
"layer": "<layer>",
"property": "<property>"
},
"name": "copy_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| keys | No | Keyframes to affect: 'all' (default), 'selected', a 1-based index, an array of indexes, {start,end} time range (inclusive, either end optional), or {times:[...]} exact key times. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| pasteAt | No | Place the first copied key at this time (overrides timeOffset). | |
| replace | No | Remove the target's existing keys first. | |
| property | Yes | Property path, '/'-separated, by display name, matchName or 1-based index. Shortcuts: 'Position', 'Scale', 'Rotation', 'Opacity', 'Anchor Point', 'Source Text', 'Time Remap', 'Audio Levels'. Examples: 'Transform/Position', 'Effects/Gaussian Blur/Blurriness', 'Contents/Rectangle 1/Fill 1/Color', 'Masks/Mask 1/Mask Feather'. | |
| targetComp | No | Comp of the target layers (default: same comp). | |
| timeOffset | No | Shift pasted keys by this much. | |
| targetLayers | No | Layers to paste onto (array of refs, or 'selected'/'all'). | |
| copyExpression | No | Also copy the source expression. | |
| targetProperty | No | Target property path (default: same as 'property'). |