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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"property": "<property>"
},
"name": "ae_set_expression"
}
}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. |