This is the method that I posted as part of this call to CGTalk . I changed it to remove all keys on animated controllers. It manages the built-in functions of the Trackbar custom filter to automatically iterate all the controllers of all objects, instead of loading all the controllers on its own.
( fn filterCallbackFunction theAnimatable theParent theSubAnimIndex theGrandParent theNode = ( if isController theAnimatable do deleteKeys theAnimatable #allKeys true ) with redraw off ( trackbar.filter = #all local filtind = maxops.trackbar.registerFilter filterCallbackFunction undefined "." 1 active:on disableRefMsgs() local sel = getCurrentSelection() select objects maxops.trackbar.redraw forceRedraw:on maxops.trackbar.unregisterfilter filtind select sel enableRefMsgs() ok ) )
Edit: Sorry or just use this :)
deleteKeys objects
source share