Add item to comp
add_layer_from_itemAdds an imported footage, image, audio, solid, or precomp item to a composition as a new layer, with optional start time, position, duration, and stack index.
Instructions
Add a project item (imported footage, image, audio, solid or another composition = precomp) to a composition as a new layer.
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": {
"item": "<item>"
},
"name": "add_layer_from_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| item | Yes | Project item name, 'Folder/Name' path, or item id. | |
| name | No | Rename the new layer. | |
| time | No | Start time of the layer in the comp (default 0). | |
| index | No | Layer stack index to place the new layer at (1 = top). Default: top. | |
| duration | No | Duration for still images (default: AE's still duration). | |
| position | No | Position [x, y] (or [x, y, z]) in comp pixels. Default: comp center. |