offset_keyframes
Shift selected or all keyframes on an After Effects layer property by a positive or negative time offset. Specify composition, layer, property, and optional keyframe indices to retime animation.
Instructions
Offset keyframes in time
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>",
"offset": "<offset>"
},
"name": "offset_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| offset | Yes | Time offset in seconds (positive or negative) | |
| layerIndex | Yes | Index of the layer | |
| propertyPath | Yes | Property path | |
| keyframeIndices | No | Specific keyframes to offset (optional, all if not specified) |