set_keyframe
Set animation keyframes for layer properties like Position, Scale, Rotation, or Opacity at specific times in After Effects compositions.
Instructions
Set a keyframe for a layer property
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>",
"property": "<property>",
"time": "<time>",
"value": "<value>"
},
"name": "set_keyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer | |
| property | Yes | Property to animate | |
| time | Yes | Time in seconds | |
| value | Yes | Value for the keyframe (number or array depending on property) |