Replace Source
replace_sourceSwap a layer's footage, precomp, solid, or null source with another project item while keeping its timing, keyframes, masks, and effects; optionally update expressions.
Instructions
Swap the footage, comp or solid a layer shows for another project item (like Alt/Option-dragging onto it), keeping the layer's timing, keyframes, masks and effects. fix_expressions (default true) updates expressions that referred to the old source. Works on footage, precomp, solid and null layers.
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_id": "<layer_id>",
"item_id": "<item_id>"
},
"name": "replace_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| layer_id | Yes | ||
| fix_expressions | No |