The Trackbar Interface provides access to properties and methods of the trackbar.
The trackbar interface can be retrieved using a function or property in maxOps interface:
Mixin Interface: (maxOps.trackbar)
Displays or hides the trackbar
<trackbar_Interface>.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
Sets/gets the key transparency value. Acceptable values range 0-255
Sets/gets the selected key transparency value. Acceptable values range 0-255
Sets/gets the cursor transparency value. Acceptable values range 0-255
Sets/gets the affect children mode.
Sets/gets whether or not the audio track is displayed in the trackbar
Sets/gets whether or not frames are displayed in the trackbar
Sets/gets whether or not selection ranges are displayed in the trackbar
Sets/gets whether or not keys are snapped to frames when moved
Redraws the trackbar. If forceRedraw is set to true, the redraw will be forced.
Gets the next key time. The "at time" context can be used to determine the starting point.
Gets the previous key time. The "at time" context can be used to determine the starting point.
The following methods for Registering and Managing of Trackbar Key Filters were added to the interface in 3ds Max 7:
<index><trackbar_Interface>.registerFilter <value>callbackFilterFunction <value>callbackAdditionFunction <string>name <integer>id \ active:<boolean> stopTraversal:<boolean> active default value: false stopTraversal default value: true
Register a trackbar filter callback function.
The callbackFilterFunction is a MAXScript function which should expect 5 arguments in the form:
theAnimatable: The first argument passed to the function will be thetrack whose controller's keys are to be filtered.
theParent: The second argument passed to the function will be the parent track of the track to be filtered.
theSubAnimIndex: The third argument passed to the function will be the sub-anim index of theAnimatable track inside theParent track,
theGrandParent: This fourth argument passed to the function will be the parent of theSubAnimIndex track. It is provided as an additional layer that is needed in case theParent argument is a ParamBlock2 or similar. For example, you may need to know that theGrandParent is a Bend Modifier and theSubAnimIndex is an index into the ParamBlock storage unit.
theNode: The fifth and last argument passed to the function will be the originating scene node whose subAnims are being traversed.
For a detailed explanation of the way the function is called and used, please see Exploring the Trackbar Filter Callback Functions
For sample filter functions, please see Trackbar Filter Callback Function Examples
Unregister the indexed filter function.
Returns the number of registered filter functions.
Returns the filter id of the indexed filter function.
Returns the name of the indexed filter function as a string.
Returns true if the indexed filter is active, false otherwise.
Sets the active state of the indexed filter to the supplied Boolean value.