add-any-effect
Apply any After Effects effect to a specific layer using its matchName or display name. Automate effect insertion in scripts by specifying composition, layer, and optional settings.
Instructions
Add any After Effects effect to a layer by matchName or display name.
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": {
"compIndex": "<compIndex>",
"layerIndex": "<layerIndex>",
"effect": "<effect>"
},
"name": "add-any-effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | Yes | Effect identifier. Prefer matchName for reliability (e.g., 'ADBE Gaussian Blur 2'). | |
| compIndex | Yes | 1-based index of the target composition in the project panel. | |
| layerIndex | Yes | 1-based index of the target layer within the composition. | |
| effectSettings | No | Optional parameters to set immediately after adding the effect. |