Track object
Track object
Section titled “Track object”app.project.sequences[index].audioTracks[index]
app.project.sequences[index].videoTracks[index]
Description
Section titled “Description”The Track object represents a video or audio track, within a Sequence object.
Attributes
Section titled “Attributes”Track.clips
Section titled “Track.clips”app.project.sequences[index].audioTracks[index].clips
app.project.sequences[index].videoTracks[index].clips
Description
Section titled “Description”An array of Track item objects, contained within the track, in temporal order.
TrackItemCollection object, read-only;
Track.id
Section titled “Track.id”app.project.sequences[index].audioTracks[index].id
app.project.sequences[index].videoTracks[index].id
Description
Section titled “Description”This is the ordinal assigned to the track, upon creation.
Integer, read-only.
Track.mediaType
Section titled “Track.mediaType”app.project.sequences[index].audioTracks[index].mediaType
app.project.sequences[index].videoTracks[index].mediaType
Description
Section titled “Description”The type of media, contained in this track.
String, read-only. One of:
Audio
Video
Track.name
Section titled “Track.name”app.project.sequences[index].audioTracks[index].name
app.project.sequences[index].videoTracks[index].name
Description
Section titled “Description”The name of the track.
String; read-only.
Track.transitions
Section titled “Track.transitions”app.project.sequences[index].audioTracks[index].transitions
app.project.sequences[index].videoTracks[index].transitions
Description
Section titled “Description”An array of transitions objects, contained within the track, in temporal order.
TrackItemCollection object, read-only;
Methods
Section titled “Methods”Track.insertClip()
Section titled “Track.insertClip()”app.project.sequences[index].audioTracks[index].insertClip(projectItem, time, vTrackIndex, aTrackIndex)
app.project.sequences[index].videoTracks[index].insertClip(projectItem, time, vTrackIndex, aTrackIndex)
Description
Section titled “Description”Adds a ‘clip’ (media segment from a ProjectItem object) to the track, at the specified time. Media will be inserted, at that time.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
projectItem | ProjectItem object | A project item from which to get media. |
time | String | The time at which to add project item, in ticks. |
vTrackIndex | Integer | The (zero-based) track index, into which to insert video. |
aTrackIndex | Integer | The (zero-based) track index, into which to insert audio. |
Returns
Section titled “Returns”None.
Track.isMuted()
Section titled “Track.isMuted()”app.project.sequences[index].audioTracks[index].isMuted()
app.project.sequences[index].videoTracks[index].isMuted()
Description
Section titled “Description”Retrieves the current mute state, of the track.
Parameters
Section titled “Parameters”None.
Returns
Section titled “Returns”Returns true
if track is currently muted; false
if not.
Track.overwriteClip()
Section titled “Track.overwriteClip()”app.project.sequences[index].audioTracks[index].overwriteClip(projectItem, time)
app.project.sequences[index].videoTracks[index].overwriteClip(projectItem, time)
Description
Section titled “Description”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.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
projectItem | ProjectItem object | A project item from which to get media. |
time | String | The time at which to add project item, in ticks. |
Returns
Section titled “Returns”Returns true
.
Track.setMute()
Section titled “Track.setMute()”app.project.sequences[index].audioTracks[index].setMute(isMuted)
app.project.sequences[index].videoTracks[index].setMute(isMuted)
Description
Section titled “Description”Sets the mute state, of the track.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
isMuted | Integer | If 1 , mute the track. If 0 , the track will be unmuted. |
Returns
Section titled “Returns”Returns 0
if successful.