setClipRange
Set a clip's in/out points in source-time seconds to shorten its head or tail, or adjust its crop; only supplied fields change and downstream clips reflow.
Instructions
Set a clip's in/out points (source-time seconds) to shorten its head or tail — distinct from a trim (which cuts a span inside the clip) — and/or its crop. Only the fields you pass are changed. All clips are re-laid back-to-back afterwards, so downstream clips shift automatically. Change the range ONLY when the user explicitly asks to shorten or extend a clip. Do NOT use this for 'remove silences' or 'cut pauses' — for those, use addTrim. cropRegion is the part of the source frame the clip shows, {x, y, width, height} in 0–1 fractions of it, per clip as in the editor's Edit clip; null shows the whole frame again. getCurrentDocument reports it on the clip, absent when the clip shows the whole frame. Two neighbouring clips of the same asset whose source ranges meet and whose crops match are one clip: the result says joinedIntoNeighbour when an edit made them so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clipId | Yes | ||
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. | |
| cropRegion | No | The part of the source frame this clip shows, as 0–1 fractions of it ({x, y, width, height}); null shows the whole frame again. | |
| sourceEndSec | No | ||
| sourceStartSec | No |