Skip to content

Track object

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

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

The Track object represents a video or audio track, within a Sequence object.


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

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

An array of Track item objects, contained within the track, in temporal order.

TrackItemCollection object, read-only;


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

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

This is the ordinal assigned to the track, upon creation.

Integer, read-only.


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

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

The type of media, contained in this track.

String, read-only. One of:

  • Audio
  • Video

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

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

The name of the track.

String; read-only.


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

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

An array of transitions objects, contained within the track, in temporal order.

TrackItemCollection object, read-only;


app.project.sequences[index].audioTracks[index].insertClip(projectItem, time, vTrackIndex, aTrackIndex)

app.project.sequences[index].videoTracks[index].insertClip(projectItem, time, vTrackIndex, aTrackIndex)

Adds a ‘clip’ (media segment from a ProjectItem object) to the track, at the specified time. Media will be inserted, at that time.

ParameterTypeDescription
projectItemProjectItem objectA project item from which to get media.
timeStringThe time at which to add project item, in ticks.
vTrackIndexIntegerThe (zero-based) track index, into which to insert video.
aTrackIndexIntegerThe (zero-based) track index, into which to insert audio.

None.


app.project.sequences[index].audioTracks[index].isMuted()

app.project.sequences[index].videoTracks[index].isMuted()

Retrieves the current mute state, of the track.

None.

Returns true if track is currently muted; false if not.


app.project.sequences[index].audioTracks[index].overwriteClip(projectItem, time)

app.project.sequences[index].videoTracks[index].overwriteClip(projectItem, time)

Adds a ‘clip’ (media segment from a ProjectItem object) to the track, at the specified time. This will overwrite any existing media, at that time.

ParameterTypeDescription
projectItemProjectItem objectA project item from which to get media.
timeStringThe time at which to add project item, in ticks.

Returns true.


app.project.sequences[index].audioTracks[index].setMute(isMuted)

app.project.sequences[index].videoTracks[index].setMute(isMuted)

Sets the mute state, of the track.

ParameterTypeDescription
isMutedIntegerIf 1, mute the track. If 0, the track will be unmuted.

Returns 0 if successful.