setLayerKeyframe
Add a keyframe to an After Effects layer property at a specific time and value, with optional interpolation such as linear, ease, hold, or easeIn/easeOut.
Instructions
Add a keyframe to a layer property at a specific timestamp with optional interpolation
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": {
"propertyName": "<propertyName>",
"time": "<time>",
"value": "<value>"
},
"name": "setLayerKeyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | Time in seconds where the keyframe should be set | |
| value | Yes | Keyframe value (number or array of numbers) | |
| compName | No | Composition name (defaults to active composition) | |
| layerName | No | Layer name | |
| layerIndex | No | Layer index (1-based) | |
| propertyName | Yes | Property name (e.g. "Position", "Scale", "Rotation", "Opacity", or effect property) | |
| keyframeInterpolation | No | Keyframe easing type |