Skip to content

TrackItem object

app.project.sequences[index].audioTracks[index].clips[index]

app.project.sequences[index].videoTracks[index].clips[index]

The TrackItem object represents an item on a video or audio track, within a Sequence object.


app.project.sequences[index].audioTracks[index].clips[index].components

app.project.sequences[index].videoTracks[index].clips[index].components

The components associated with this trackItem. This can include intrinsic transformations, as well as video and audio effects.

ComponentCollection object, read-only;


app.project.sequences[index].audioTracks[index].clips[index].duration

app.project.sequences[index].videoTracks[index].clips[index].duration

The duration of the trackItem.

Time object, read-only.


app.project.sequences[index].audioTracks[index].clips[index].end

app.project.sequences[index].videoTracks[index].clips[index].end

The visible end time of the trackItem in the sequence, relative to the beginning of its corresponding sequence (NOT the sequence zero point).

Time object, read/write.


app.project.sequences[index].audioTracks[index].clips[index].inPoint

app.project.sequences[index].videoTracks[index].clips[index].inPoint

The in point set on the source for this trackItem instance, relative to the beginning of the source.

Time object, read/write.


app.project.sequences[index].audioTracks[index].clips[index].matchName

app.project.sequences[index].videoTracks[index].clips[index].matchName

Add a description

String; read-only.


app.project.sequences[index].audioTracks[index].clips[index].mediaType

app.project.sequences[index].videoTracks[index].clips[index].mediaType

The mediaType of media provided by this trackItem.

String, one of:

  • "Audio"
  • "Video"

app.project.sequences[index].audioTracks[index].clips[index].name

app.project.sequences[index].videoTracks[index].clips[index].name

The name of the track item.

String; read/write.


app.project.sequences[index].audioTracks[index].clips[index].nodeId

app.project.sequences[index].videoTracks[index].clips[index].nodeId

Add a description

String.


app.project.sequences[index].audioTracks[index].clips[index].outPoint

app.project.sequences[index].videoTracks[index].clips[index].outPoint

The out point set on the source for this TrackItem instance, relative to the beginning of the source.

Time object, read/write.


app.project.sequences[index].audioTracks[index].clips[index].projectItem

app.project.sequences[index].videoTracks[index].clips[index].projectItem

The ProjectItem object from which the media is being drawn.

A ProjectItem object.


app.project.sequences[index].audioTracks[index].clips[index].start

app.project.sequences[index].videoTracks[index].clips[index].start

The visible start time of the trackItem in the sequence, relative to the beginning of its corresponding sequence (NOT the sequence zero point). Note: This may differ from the trackItem’s in point, which is relative to the source.

Time object, read/write.


app.project.sequences[index].audioTracks[index].clips[index].type

app.project.sequences[index].videoTracks[index].clips[index].type

The type of media provided by this trackItem.

Number, 1 means video, 2 means audio.


app.project.sequences[index].videotracks[index].getMGTComponent

app.project.sequences[index].audiotracks[index].getMGTComponent

Adds an After Effects Motion Graphics Template - a Mogrt - to the selected track at the specified time.

ParameterTypeDescription
mogrtPathStringFull path to a valid .mogrt, created in After Effects
targetTimeStringThe time at which to insert the .mogrt, in ticks
vidTrackOffsetIntegerThe offset from 0 (the first available track), on which to insert video from the .mogrt
audTrackOffsetIntegerThe offset from 0 (the first available track), on which to insert audio from the .mogrt

A Component object representing the parameters of the .mogrt, which the creator has exposed.


app.project.sequences[index].audioTracks[index].clips[index].getSpeed()

app.project.sequences[index].videoTracks[index].clips[index].getSpeed()

Returns the speed multiplier applied to the TrackItem.

None.

Returns the speed multiplier applied to the TrackItem, as a Float. No speed adjustment = 1.


app.project.sequences[index].audioTracks[index].clips[index].isAdjustmentLayer()

app.project.sequences[index].videoTracks[index].clips[index].isAdjustmentLayer()

Returns wheter the TrackItem is an adjustment layer.

None.

Returns true if the trackitem is an adjustment layer; false if not.


app.project.sequences[index].audioTracks[index].clips[index].isSpeedReversed()

app.project.sequences[index].videoTracks[index].clips[index].isSpeedReversed()

Returns whether the trackItem is reversed.

None.

Returns 1 if TrackItem is reversed; 0 if not.


app.project.sequences[index].audioTracks[index].clips[index].isSelected()

app.project.sequences[index].videoTracks[index].clips[index].isSelected()

Retrieves the current selection state of the trackItem.

None.

Returns true if trackItem is selected; false if not.


app.project.sequences[index].audioTracks[index].clips[index].setSelected(state, updateUI)

app.project.sequences[index].videoTracks[index].clips[index].setSelected(state, updateUI)

Sets the selection state of the trackItem.

ParameterTypeDescription
stateIntegerIf 1, the track item will be selected; if 0, it will be deselected.
updateUIIntegerIf 1, the Premiere Pro UI will be updated after this function call is made.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].getMatchName()

app.project.sequences[index].videoTracks[index].clips[index].getMatchName()

Retrieves the match name for the trackItem.

None.

Returns the match name as a String if successful.


app.project.sequences[index].audioTracks[index].clips[index].remove(inRipple, inAlignToVideo)

app.project.sequences[index].videoTracks[index].clips[index].remove(inRipple, inAlignToVideo)

Sets the selection state of the trackItem.

ParameterTypeDescription
inRippleBooleanIf 1, later track items will be moved earlier, to fill the gap; if 0, later track items will remain in place.
inAlignToVideoBooleanIf 1, Premiere Pro will align moved track items to the start of the nearest video frame.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].disabled

app.project.sequences[index].videoTracks[index].clips[index].disabled

Sets the disabled state of the TrackItem. Read/Write.

ParameterTypeDescription
newDisableStateBooleanIf true, this TrackItem will be disabled; if false, TrackItem will be enabled.

Returns 0 if successful.


app.project.sequences[index].audioTracks[index].clips[index].move(newInPoint)

app.project.sequences[index].videoTracks[index].clips[index].move(newInPoint)

Moves the inPoint of the track item to a new time, by shifting it by a number of seconds.

ParameterTypeDescription
newInPointTime objectA Time object that represent the amount of time, in seconds, to shift the track item’s start.

Returns 0 if successful.