Scale keyframe timing
scale_keyframe_timingStretch or compress keyframe timing around a pivot time to retime animation speed while preserving easing curve shape.
Instructions
Stretch or compress keyframe timing around a pivot time (default: first selected key). factor 2 = twice as slow, 0.5 = twice as fast. Ease speeds are rescaled so the curves keep their shape.
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>",
"factor": "<factor>"
},
"name": "scale_keyframe_timing"
}
}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. | |
| pivot | No | Time that stays fixed (default: first affected key). | |
| factor | Yes | Time scale factor. | |
| 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'. |