Set duration of many clips
set_clips_durationSet the same duration for multiple Premiere Pro clips by clip IDs or track, with optional ripple to keep the timeline contiguous and linked audio/video in sync.
Instructions
Give many clips the same length in one call, e.g. make every still 3 s. Choose the clips with clip_ids, or with a track (track_type + track_index), optionally only stills (stills_only=true). ripple=true (default) keeps the timeline contiguous and in sync: after each changed clip, all later clips on every track shift by that clip's change (a track where that would make clips collide is left alone and listed in tracks_not_rippled). ripple=false only moves each clip's end (a clip stops growing at the next clip). Linked audio/video clips get the same duration when include_linked is true (default). Video and audio clips cannot grow beyond their source media. Returns every changed clip.
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_clips_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ripple | No | Shift all later clips on every track after each changed clip. Default true. | |
| clip_ids | No | Clips to change. Omit to select by track. | |
| duration | Yes | New length of each clip, in seconds. Snapped to a frame. | |
| track_type | No | Track type when selecting by track. Default "video". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| stills_only | No | Only change clips whose source is a still image. Default false. | |
| track_index | No | 0-based track index when selecting by track. Omit for every track of track_type. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| include_linked | No | Also resize the clips linked to this one (the audio of a video clip, or the video of an audio clip). Default true. |