Trackbar Interface

Topic: version 4 MAXScript New Features/TrackBar

An interface has been added to access properties and methods of the trackbar. The trackbar interface can be retrieved using a function or property in maxOps.

trackBar_Interface = maxOps.trackBar

or

trackBar_Interface = maxOps.getTrackBar()

The following methods and properties are available for the trackbar.

Properties:

.visible : boolean : Read|Write

Displays or hides the trackbar

.filter : enum : Read|Write

filter enums: {#all|#TMOnly|#currentTM|#cbject|#mat}

Sets and gets the filter that determines which keys are displayed in the trackbar

.showFrames : bool : Read|Write

Sets/gets whether or not frames are displayed in the trackbar

.showAudio : bool : Read|Write

Sets/gets whether or not the audio track is displayed in the trackbar

.showSelectionRange : bool : Read|Write

Sets/gets whether or not selection ranges are displayed in the trackbar

.showSnapToFrames : bool : Read|Write

Sets/gets whether or not keys are snapped to frames when moved

.keyTransparency : integer : Read|Write

Sets/gets the key transparency value. Acceptable values range 0-255

.selKeyTransparency : integer : Read|Write

Sets/gets the selected key transparency value. Acceptable values range 0-255

.cursorTransparency : integer : Read|Write

Sets/gets the cursor transparency value. Acceptable values range 0-255

Methods:

<void>redraw forceRedraw:<bool>

forceRedraw default value: false

Indicates if the redraw should be forced

Redraws the trackbar.

<time>getNextKeyTime()

Gets the next key time. The "at time" context can be used to determine the starting point.

<time>getPreviousKeyTime()

Gets the previous key time. The "at time" context can be used to determine the starting point.

See also