ae_add_expression
Add JavaScript-like expressions to After Effects layer properties (e.g., Position, Opacity) by specifying composition, layer, and property path. Enables dynamic animations without manual keyframes.
Instructions
Add an expression to a layer property
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": {
"comp_name": "<comp_name>",
"layer_name": "<layer_name>",
"property_path": "<property_path>",
"expression": "<expression>"
},
"name": "ae_add_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp_name | Yes | Composition name | |
| expression | Yes | The expression code (JavaScript-like ExtendScript expression) | |
| layer_name | Yes | Layer name | |
| property_path | Yes | Property path (e.g. 'Transform.Position', 'Transform.Opacity') |