Track Item object

Track Item

Description

The trackItem object represents an item on a video or audio track, within a sequence.

Attributes

name

trackItem.name

Description

The name of the track item.

Type

String; read/write.


duration

trackItem.duration

Description

The duration of the trackItem.

Type

Time object, read-only.


start

trackItem.start

Description

The starting time of the trackItem. Note: This may differ, from the trackItem’s in point.

Type

Time object, read/write.


end

trackItem.end

Description

The ending time of the trackItem. Note: This may differ, from the trackItem’s out point.

Type

Time object, read/write.


inPoint

trackItem.inPoint

Description

The in point for media, in this trackItem.

Type

Time object, read/write.


outPoint

trackItem.outPoint

Description

The out point for media, in this trackItem.

Type

Time object, read/write.


type

trackItem.type

Description

The type of media provided by this trackItem.

Type

1 means video, 2 means audio.


mediaType

trackItem.mediaType

Description

The mediaType of media provided by this trackItem.

Type

This will either be “audio” or “video”.


projectItem

trackItem.projectItem

Description

The projectItem from which the media is being drawn.

Type

A projectItem.


components

trackItem.components

Description

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

Type

An Array of components; read-only.

Methods

isSelected

trackItem.isSelected()

Description

Retrieves the current selection state of the trackItem.

Parameters

None.

Returns

Returns true if trackItem is selected; false if not.


setSelected

trackItem.setSelected(selectionState, updateUI)

Description

Sets the selection state of the trackItem.

Parameters

If selectionState is 1, the trackItem will be selected; if 0, it will be deselected. If updateUI is 1, the Premiere Pro UI will be updated after this function call is made.

Returns

Returns 0 if successful.


isReversed

trackItem.isReversed()

Description

Returns whether the trackItem is reversed.

Parameters

None.

Returns

Returns 1 if trackItem is reversed; 0 if not.


getSpeed

trackItem.getSpeed()

Description

Returns the speed multiplier applied to the trackItem.

Parameters

None.

Returns

Returns the speed multiplier applied to the trackItem, as a float. No speed adjustment = 1.


isAdjustmentLayer

trackItem.isAdjustmentLayer()

Description

Returns wheter the trackItem is an adjustment layer.

Parameters

None.

Returns

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