Animate a property
ae_set_keyframesSet keyframes on any animatable property in After Effects comps. Replace existing keyframes at the same times and apply smooth ease in/out for natural motion.
Instructions
Set keyframes on any animatable property — transform, effect parameters, mask paths, shape properties, text animators. Existing keyframes at the same times are replaced. Easing defaults to smooth ease in and out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, project item id, or index. Omit for the active comp. | |
| layer | No | Layer name or 1-based index. Omit to use the current selection. | |
| easing | No | Which side of each keyframe gets eased. Default: both. | |
| property | Yes | Property path, e.g. "Transform.Position", "Position", "Effects.Gaussian Blur.Blurriness", or an array of names/matchNames for exact addressing. | |
| influence | No | Ease influence percent — higher is slower into and out of keys. Default: 33.33. | |
| keyframes | Yes | ||
| clearExisting | No | Remove all existing keyframes on the property first. Default: false. | |
| interpolation | No | Default for all keyframes. Default: bezier. | |
| spatialInterpolation | No | For position: 'linear' gives straight-line motion, 'auto' gives a smooth curve. |