Set comp duration (layer-aware)
set_comp_durationChanges a composition's duration and, when lengthening, extends layers and work areas that ended at the old end; recursive mode also lengthens short nested precomps.
Instructions
Change a composition's duration. When lengthening, layers that ended at the old end are extended to the new end (extendLayers, default true) and a work area that ended at the old end follows. recursive=true also lengthens nested precomps that are too short (and their layers). Footage layers can only be extended up to their source length; those are reported in notExtended.
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": {
"duration": "<duration>"
},
"name": "set_comp_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| duration | Yes | New duration: seconds, 'Nf' frames or timecode. | |
| recursive | No | Also lengthen nested precomps as needed (default false). | |
| extendLayers | No | Extend layers ending at the old end (default true). |