scale_keyframe_timing
Adjust animation speed by stretching or compressing keyframe timing in After Effects compositions. Change duration proportionally using a scale factor while maintaining relative timing.
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 | |
| layerIndex | Yes | Index of the layer | |
| propertyPath | Yes | Property path | |
| scaleFactor | Yes | Scale factor (2 = double duration, 0.5 = half duration) | |
| anchorTime | No | Time to anchor the scaling around |