Notifications
Clear all

[Closed] trackBar filter, need help

I’m looking for a way to filter the trackbar keys in a way that I can only see the active track only as well as being able to filter only rotation or position.

My code so far:


fn callbackAdditionFunction arg1 arg2 = (true)
fn FilterTrack theAnim theParent theIndex theGParent theNode =
(
	superClassof theAnim == FloatController and classof theParent  == Position_XYZ 
)
theFilter = (maxOps.trackBar).registerFilter FilterTrack callbackAdditionFunction "Custom track Filter" 13 active:true stopTraversal:false

but this shows all position keys on all tracks

I know I could manually add the active only filter but for the sake of the learning process I’d rather not do that.

How can I get a check on the active track to return a true ?