Add keyframes
add_keyframesAdd or overwrite keyframes on animatable After Effects properties, specifying time, value, interpolation, and optional ease. Returns the property's keys and final indexes of the added keys.
Instructions
Add (or overwrite) keyframes on any animatable property. Each key: {time, value, interpolation?, easeIn?, easeOut?}. easeIn/easeOut = {speed (units/sec, number or per-dimension array), influence (0.1-100 %)}. Returns the property's keys and the final indexes of the added keys.
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>",
"keys": "<keys>"
},
"name": "add_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| keys | Yes | Keyframes to set. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| 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'. | |
| interpolation | No | Preset applied to every new key without its own interpolation. |