Copy effects between layers
copy_effectsTransfers all or selected effects from one After Effects layer to other layers, including keyframes and expressions while skipping unsupported curve/gradient values.
Instructions
Copy all (or selected) effects from one layer to other layers, recreating each effect by matchName and copying param values, keyframes (with interpolation/ease) and expressions. Source may be in another comp ('fromComp'). replace=true first removes the targets' existing effects. Curves/gradient-type custom values cannot be copied by script and are listed as skipped.
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": {
"fromLayer": "<fromLayer>"
},
"name": "copy_effects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| effects | No | Effects to copy (default all). | |
| replace | No | Remove the targets' existing effects first (default false). | |
| fromComp | No | Comp of the source layer (default: same as 'comp'). | |
| toLayers | No | Target layers in 'comp': array of refs, 'selected' or 'all'. | |
| fromLayer | Yes | Source layer (in 'fromComp' if given, else in 'comp'). | |
| keyframes | No | Copy keyframes (default true); false copies the value at the first key. | |
| expressions | No | Copy expressions (default true). |