Apply effect
ae_apply_effectAdds an effect to an After Effects layer by match or display name, sets optional parameters, and returns the effect's stack index and applied values.
Instructions
Apply an effect to a layer by match name (preferred, e.g. "ADBE Gaussian Blur 2", "ADBE Fill", "ADBE Glo2", "ADBE Drop Shadow") or display name, optionally setting parameters. Each call adds a new instance at the bottom of the layer's effect stack. Returns its index in the stack, its parameters and the values set; an unknown effect name fails with suggestions. Check parameter names first with ae_get_effect_params; change an applied effect with ae_set_effect_params, search installed effects with ae_list_available_effects (both via ae_call).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition: item id (number) or exact name. Omit (or "active") for the active/open composition. | |
| name | No | Name for the new effect instance (default: After Effects' name for it). | |
| layer | Yes | Layer: 1-based index (number) or exact layer name. | |
| effect | Yes | Match name (e.g. "ADBE Gaussian Blur 2", works in every AE language) or display name ("Gaussian Blur"). | |
| params | No | Effect parameters by display name or match name, e.g. {"Blurriness": 20, "Repeat Edge Pixels": true} or {"Color": "#ff0000"}. |