ae_set_expression
Set or clear an After Effects expression on a layer or effect property; returns expressionError if rejected and keeps the change to one undo step.
Instructions
Set an expression on a layer or effect property, or remove it with an empty string. Reports expressionError if AE rejects it. One undo step.
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": {
"layer": "<layer>",
"property": "<property>",
"expression": "<expression>"
},
"name": "ae_set_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name or numeric item id. Omit to use the active composition. | |
| layer | Yes | Layer name or 1-based index. | |
| property | Yes | Property path: 'Transform/Position', 'Opacity', 'Source Text', 'Effects/Gaussian Blur/Blurriness' (names, matchNames or 1-based indices, '/'-separated or as an array). | |
| expression | Yes |