Trackviews

Note:

The methods listed below reflect the features of releases prior 3ds Max 5. TrackView has been completely rewritten in 3ds Max 5. For access to the new features, please look under Interface: trackviews

?

trackviews.isOpen name or index

Returns a boolean value indicating if the specified trackview is open.

trackviews.isCurrent name or index

Returns a boolean value indicating if the trackview is the last one used or not.

trackviews.setCurrent name or index

Sets the specified trackview to be the current one. Returns true if successful.

trackviews.currentTrackView

Read only property that returns the interface for the currently used trackview. Returns undefined if the trackview is closed.

trackviews.lastUsedTrackViewName

Read only property that returns the name of the current trackview.

trackviews.openLastUsedTrackView()

Opens the current trackview if it has been closed.

trackviews.delete name or index

Deletes the specified trackview.

trackviews.close name or index

You can now close a trackview based on it's index or name.

trackviews.open name or index

You can now open a trackview based on it's index or name.

trackviews.getTrackView name or index

This method will get a trackview based on it’s index or name.

Example:

showInterface (trackviews.getTrackView 1)

trackviews.getAllTrackViews()

The above script returns an array of trackviews.

?

trackviews.numTrackViews()

Returns the number of trackviews.

trackviews.getTrackViewName index

Returns the name of the trackview window based on the index.

setName name

Sets the name of the trackview window

getNumTracks()

Gets the number of tracks currently displayed in trackview

numSelTracks()

Gets the number of selected tracks

canAssignController()

Tests to see if all selected tracks are of the same type

assignControllerDialog

Invokes the assign controller dialog if canAssignController()

assignController controller

Assigns the controller to the selected tracks if canAssignController() is true and the controller is the appropriate type

showControllerTypes state

Sets the ShowControllerType property

expandTracks()

Expands all tracks

zoomSelected()

Zooms to the selected object's track

zoomOnTrack parent subNum

Zooms to the track defined by the parent and the subNum

getTrack index

Returns the object belonging to the indexed track

getParent index

Gets the parent of the object belonging to the index track. If the object is a position controller, the parent is the Transform controller

getSelected index

Gets the objects belonging to the selected, indexed track

getParentOfSelected index

Gets the indexed selected tracks parent object

getSelectedSubNum index

Gets the subNum of the selected track

getIndex object

Gets the index for the animatable object

selectTrackByIndex index clearSelection

Selects tracks by index

selectTrack object clearSelection

Selects tracks by object

A trackview interface can be obtained for one of the currently open trackviews using one of the following methods.

trackviews.getTrackViewByName

trackviews.getTrackViewByIndex

trackviews.getAllTrackViews()

?

Once you have an instance of the trackview interface you can call the following new methods on it.

getEditMode()

Gets the current edit mode as an symbolic enum.

setEditMode

Sets the current edit mode

editMode

Property to do the same as the above two methods

Valid symbolic enum values are:

#editKeys

#editTime

#editFCurves

#editRanges

#positionRanges

See also

trackView const StructDef

Interface: trackviews

Track View

Interface: trackviews