Apply effect
apply_effectAdd effects to one or more After Effects layers, optionally rename the instance and set parameters immediately, then return the effect's parameters for further adjustment.
Instructions
Add an effect to one or more layers. 'effect' is a display name or matchName (case-insensitive); a unique partial name also works (e.g. 'gaussian'), otherwise the error lists close matches. Optionally rename it and set params right away. Returns the effect's params (first layer) so you can adjust them with set_effect_params. Unknown params are reported as warnings.
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": {
"effect": "<effect>"
},
"name": "apply_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| name | No | New name for the effect instance (e.g. 'Main Blur'). | |
| effect | Yes | Effect display name ('Gaussian Blur') or matchName ('ADBE Gaussian Blur 2'). | |
| layers | No | Target layer(s): one ref, an array of refs, 'selected' (default) or 'all'. | |
| params | No | { param: value }. Keys: param display name (case/punctuation-insensitive), matchName, 1-based index, or 'Topic/Name' for params under a section header (e.g. Lumetri 'Vignette/Amount'). Values: numbers in AE scripting units (check min/max with get_effect_params; e.g. Drop Shadow Opacity is 0-255, Fill Opacity 0-1), colors '#RRGGBB', checkboxes true/false, points [x,y] in layer pixels, popups as 1-based item index, Dropdown Menu Control items by label, layer params by layer name/index (0 = none). An object {value?, time?, expression?, keyframes?:[{time,value}]} sets keyframes/expressions. | |
| enabled | No | false = add it switched off. |