set_keyframe_velocity
Set incoming and outgoing velocity for a specific keyframe on a layer property to control animation speed curves in After Effects compositions.
Instructions
Set velocity (speed graph) for keyframes
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>",
"keyframeIndex": "<keyframeIndex>"
},
"name": "set_keyframe_velocity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer | |
| propertyPath | Yes | Property path | |
| keyframeIndex | Yes | Index of the keyframe (1-based) | |
| incomingVelocity | No | Incoming velocity | |
| outgoingVelocity | No | Outgoing velocity |