Set expression
ae_set_expressionSet, replace, or clear an After Effects property expression, optionally enable or disable it, and return the resulting value plus any reported error.
Instructions
Set, replace or clear (empty string) the expression on one property. Returns the expression, whether it is enabled, any error AE reports and the resulting value at the current time. To try an expression without keeping it use ae_check_expression, to edit text across many expressions ae_replace_in_expressions, to list them ae_get_expressions (all via ae_call).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition: item id (number) or exact name. Omit (or "active") for the active/open composition. | |
| path | Yes | Property path from the layer, "/"-separated display names or match names, e.g. "Transform/Position", "Effects/Gaussian Blur/Blurriness", "ADBE Transform Group/ADBE Opacity", "Contents/Rectangle 1/Fill 1/Color". | |
| layer | Yes | Layer: 1-based index (number) or exact layer name. | |
| enabled | No | Set false to keep the expression but switch it off, true to switch it on (ignored when clearing). | |
| expression | Yes | Expression code; an empty string removes the expression. |