Set effect params
set_effect_paramsSet effect parameters on an After Effects layer, including values, expressions, and keyframes at a specific time. Returns new values and warnings for invalid params.
Instructions
Set one or more params of an effect on a layer. With 'time' each value becomes a keyframe at that time; params that are already animated get a keyframe at the current time. Per-param objects can set expressions or several keyframes. Returns the new values; problems are listed in 'warnings' (strict=true makes them errors).
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>",
"effect": "<effect>",
"params": "<params>"
},
"name": "set_effect_params"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| time | No | Set values as keyframes at this time (seconds, '12f' or timecode). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| effect | Yes | Effect on the layer: 1-based index in the Effects stack, effect name (as renamed), or matchName (e.g. 'ADBE Glo2'). | |
| params | Yes | { 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. | |
| strict | No | Fail on the first unknown/invalid param instead of warning. |