setLayerKeyframe
Set a keyframe on an After Effects layer property at a given time by specifying composition, layer, property name, and time in seconds.
Instructions
Set a keyframe on a layer property. For multiple keyframes, use setLayerKeyframes instead.
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": {
"compIndex": "<compIndex>",
"layerIndex": "<layerIndex>",
"propertyName": "<propertyName>",
"timeInSeconds": "<timeInSeconds>"
},
"name": "setLayerKeyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Keyframe value (number, array, etc.) | |
| compIndex | Yes | Composition index (1-based) | |
| layerIndex | Yes | Layer index (1-based) | |
| propertyName | Yes | Property name (e.g., 'Position', 'Opacity', 'Scale') | |
| timeInSeconds | Yes | Time in seconds |