View Full Version : Callback for trackbar?

04 April 2009, 02:14 PM
Is there a callback that can detect I changed a key selection on the trackbar?


04 April 2009, 02:34 PM
not directly - try by adding a trackbar filter callback; would only have to grab the subanim, loop over its keys, check which one - if any - is selected and compare to previously-stored selected key.

in terms of the general callbacks, only #redrawViews seems to get called when you change the key selection in the trackbar.. and I'm not even sure why that one gets called :)

04 April 2009, 02:41 PM
Nevermind, found a good enough approach already:

fn testCallbackFilterFunction theAnimatable theParent theSubAnimIndex theGrandParent theNode =
if isKindOf theAnimatable bezier_Float and isKindOf theParent Position_XYZ then
format "%:%:%\n" theNode theAnimatable theSubAnimIndex
) --always returns true, means show all keys

fn testCallbackAdditionFunction arg1 arg2 = (true)
theInterface = maxOps.trackbar
theIndex = theInterface.registerFilter testCallbackFilterFunction callbackAdditionFunction "Test Filter" 8 active:true stopTraversal:false


P.s. Missed your post Richard, seems we're on the same page ;)

CGTalk Moderation
04 April 2009, 02:42 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.