scale_keyframe_timing
Stretch or compress keyframe timing around a chosen anchor to retime layer property animations and adjust duration without manual keyframe edits.
Instructions
Scale the timing of keyframes (stretch or compress animation)
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": {
"compId": "<compId>",
"layerIndex": "<layerIndex>",
"propertyPath": "<propertyPath>",
"scaleFactor": "<scaleFactor>"
},
"name": "scale_keyframe_timing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| anchorTime | No | Time to anchor the scaling around | |
| layerIndex | Yes | Index of the layer | |
| scaleFactor | Yes | Scale factor (2 = double duration, 0.5 = half duration) | |
| propertyPath | Yes | Property path |