Add layer style
add_layer_styleAdd Photoshop-style layer styles such as drop shadow, glow, bevel, overlay, or stroke to After Effects layers and optionally set style parameters.
Instructions
Add a Photoshop-style layer style (Layer > Layer Styles) to layer(s): drop_shadow, inner_shadow, outer_glow, inner_glow, bevel_emboss, satin, color_overlay, gradient_overlay, stroke - then optionally set its params (e.g. {Color:'#ff0000', Size: 10, Opacity: 75, Distance: 8}). Uses the menu command, so it opens the comp in the viewer and selects the layer(s) temporarily. If the style already exists only the params are set. Stroke here outlines the layer's alpha (no mask needed).
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": {
"style": "<style>"
},
"name": "add_layer_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| style | Yes | Layer style. | |
| 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. |