ae_setExpression
Sets or clears an After Effects expression on any layer property using aliases or a full property path, and returns any expression error for troubleshooting.
Instructions
After Effects: set (or clear with "") an expression on any property — aliases (position, scale, rotation, opacity, anchorPoint...) or a path like "Effects>Gaussian Blur>Blurriness" / "Contents>Rectangle 1>...". Returns the expression error if any.
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_setExpression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Layer name or 1-based index. | |
| property | Yes | ||
| expression | Yes | ||
| compositionName | No | Comp name; omit to use the active comp. |