setLayerKeyframe
Set a keyframe on an After Effects layer property at a given time. Add two or more keyframes on the same property to animate it.
Instructions
Set a keyframe on a layer property at a given time. Add two or more keyframes on the same property to animate it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Value: [x,y] for Position, [w,h] percent for Scale, degrees for Rotation, percent for Opacity. | |
| compIndex | Yes | 1-based index of the composition in the Project panel (see getProjectInfo / listCompositions). | |
| layerIndex | Yes | 1-based index of the layer within the composition. | |
| propertyName | Yes | Property to keyframe: 'Position', 'Scale', 'Rotation' or 'Opacity'. | |
| timeInSeconds | Yes | Time of the keyframe, in seconds. |