Place Item In Sequence
Places one project item into a sequence at a given time using `INSERT` or `OVERWRITE` mode. Without `sourceInSeconds` / `sourceOutSeconds`, the block keeps the legacy Premiere behavior and uses the project item's current source range. When `sourceInSeconds` and/or `sourceOutSeconds` are provided, the runtime temporarily overrides the project item's source in/out for this placement only and restores the original project-item state afterward. Explicit source ranges use source-relative seconds, where `0` is the first media frame regardless of embedded source timecode. If only `sourceInSeconds` is provided, placement runs from that time to media end. If only `sourceOutSeconds` is provided, placement runs from source-relative media start (`0`) to that time. `storePlacedItemsIn` stores uniquely resolved Track Item references from the requested video/audio target tracks for immediate use. Ambiguous identity fails without guessing. If verification fails after a uniquely identified placement is successfully removed, `storeResultIn` becomes false; if rollback cannot be proven, it retains the committed true result. When Premiere expands one placement across additional audio tracks, as with multi-mono or some 5.1 interpretations, ref capture fails explicitly instead of returning an incomplete list: the placement remains committed, `storeResultIn` remains true, and `storePlacedItemsIn` remains unset. Complete cross-track capture requires a future atomic before/after identity API. Relist affected tracks after later structural timeline edits instead of reusing those references.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
item | yes | expression | reference, string | — |
sequence | no | expression | reference, string, null | — |
mode | yes | expression | enum-string | INSERT, OVERWRITE |
timeSeconds | yes | expression | number | — |
sourceInSeconds | no | expression | number | — |
sourceOutSeconds | no | expression | number | — |
videoTrackIndex | no | expression | number | — |
audioTrackIndex | no | expression | number | — |
limitShift | no | expression | boolean | — |
disableVideo | no | expression | — | — |
onError | no | expression | enum-string | STOP, CONTINUE, RETURN_FALSE |
storeResultIn | no | variable-name | variable-name | — |
storePlacedItemsIn | no | variable-name | variable-name | — |
Replaces Older Blocks
prSequenceInsertItemprSequenceOverwriteItem
Notes
- Unified single-item timeline placement block.
- Set
modeto:INSERTto insert attimeSeconds(useslimitShiftwhen provided).OVERWRITEto overwrite attimeSeconds(ignoreslimitShift).
- Without
sourceInSeconds/sourceOutSeconds, the block preserves Premiere's legacy behavior and places the project item's current source range. The source Project Item is read-only for permission purposes; only the destination sequence needs Premiere write access. - In the tested untouched-default case, that legacy behavior inserted the full clip.
- If the project item's source in/out were explicitly set before placement, the legacy no-range form places exactly that configured source range.
sourceInSecondsandsourceOutSecondsoverride that legacy stateful behavior for this placement only.- Explicit source ranges use source-relative seconds:
0is the first media frame, regardless of embedded source timecode. - If only
sourceInSecondsis set, placement runs from that time to media end. - If only
sourceOutSecondsis set, placement runs from source-relative media start (0) to that time. - When explicit source-range inputs are used, the runtime temporarily sets project-item source in/out, performs the placement, and restores the original project-item state afterward. This requires write permission for the source project item as well as the target sequence.
- Supports explicit
videoTrackIndex/audioTrackIndex. - When
disableVideo=true, the runtime resolves the freshly placed video item, commits the disabled state, and verifies it before the host call returns. Placement plus disabling is therefore one cooperative-cancellation unit. Source-range identity tolerates Premiere snapping the temporary placement nudge back to the sequence frame grid. If disabling cannot be verified after one unique placement was resolved, the runtime removes that new video item before reporting failure so an enabled higher-track clip is not silently left behind. The option requires a non-negative video track and does not disable any placed audio item. storePlacedItemsInstores freshly placed Track Item references only when exactly one matching item with the requested source range exists on every requested target track. A missing requested VIDEO or AUDIO placement is a verification failure, even when the other requested media lane matches. Timeline start uses a strict epsilon; frame tolerance applies only to source in/out verification. Ambiguous identity fails without destructive guessing, while a uniquely identified placement that fails range verification is removed without ripple before the error is reported.- Placement success and placed-item reference capture are separate results. If Premiere committed the placement but reference capture then fails without a verified rollback,
storeResultInremainstrue;onErrorgoverns the capture failure andstorePlacedItemsInremains unset. If unique placement identity allowed the host to remove every placed item successfully,storeResultInis changed tofalseforCONTINUEandRETURN_FALSEbecause no placement remains. - The current capture inspects
videoTrackIndexand detects matching placement identity on later audio tracks. When Premiere expands one placement across additional audio tracks, as with multi-mono or some 5.1 interpretations, capture fails explicitly instead of returning an incomplete list or guessing which cross-track matches are fresh. The same conservative rejection can occur when the same source was intentionally layered at the same start time on later audio tracks; it can therefore depend on placement order. The placement remains committed andstoreResultInremainstrue. Complete capture and distinction from intentional layering require atomic before/after placement identity across all affected tracks. - Stored Track Item references are immediate-use snapshots: after any structural timeline mutation, relist the affected tracks instead of reusing them.
- Track indices are 0-based (
0= first track / V1 / A1). - Preferred block for new scripts.
See Also
- Premiere Reference Paths: Explains Premiere reference path strings for project items, sequences, tracks, timeline items, markers, components, and parameters.
Examples
Place Multiple Source Ranges From One Clip
Creates an empty sequence, then fills it with three explicit source ranges from one clip while verifying the original project-item in/out gets restored afterward.
Topics: timeline placement, source range placement, sequence creation
Source: patterns/ex-sequence-place-multiple-source-ranges-from-one-clip.json
Set Project Item In/Out Then Place It
Sets a clip project item's source in/out, places it into a new sequence without explicit source-range overrides, then verifies that placement used the current project-item range.
Topics: timeline placement, project item properties, source range placement
Source: patterns/ex-sequence-set-project-item-in-out-and-place.json
Create Empty Sequence Matching Selected Item And Place It
Creates an empty sequence whose settings match the first selected project item, stores the returned sequence ref, then places the item explicitly into that sequence.
Topics: sequence creation, project inspection, timeline placement, matched sequence settings
Source: patterns/ex-sequence-create-matching-item-and-place.json