setLayerKeyframe
Set keyframes for specific layer properties in After Effects compositions at precise times using AI-driven automation. Define composition, layer, property, time, and value for accurate animation control.
Instructions
Set a keyframe for a specific layer property at a given time.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
compIndex | Yes | 1-based index of the target composition in the project panel. | |
layerIndex | Yes | 1-based index of the target layer within the composition. | |
propertyName | Yes | Name of the property to keyframe (e.g., 'Position', 'Scale', 'Rotation', 'Opacity'). | |
timeInSeconds | Yes | The time (in seconds) for the keyframe. | |
value | No | The value for the keyframe (e.g., [x,y] for Position, [w,h] for Scale, angle for Rotation, percentage for Opacity) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"compIndex": {
"description": "1-based index of the target composition in the project panel.",
"exclusiveMinimum": 0,
"type": "integer"
},
"layerIndex": {
"description": "1-based index of the target layer within the composition.",
"exclusiveMinimum": 0,
"type": "integer"
},
"propertyName": {
"description": "Name of the property to keyframe (e.g., 'Position', 'Scale', 'Rotation', 'Opacity').",
"type": "string"
},
"timeInSeconds": {
"description": "The time (in seconds) for the keyframe.",
"type": "number"
},
"value": {
"description": "The value for the keyframe (e.g., [x,y] for Position, [w,h] for Scale, angle for Rotation, percentage for Opacity)"
}
},
"required": [
"compIndex",
"layerIndex",
"propertyName",
"timeInSeconds"
],
"type": "object"
}