Set or clear an expression
ae_set_expressionAttach or remove JavaScript expressions on After Effects properties to automate animations or clear existing ones.
Instructions
Attach an expression to a property, or clear it. Expressions are written in After Effects' JavaScript expression language.
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. | |
| property | Yes | Property path, e.g. "Transform.Position", "Position", "Effects.Gaussian Blur.Blurriness", or an array of names/matchNames for exact addressing. | |
| expression | No | The expression source. Omit or pass an empty string to remove it. |