MaxPlus collapse animation

I’m really struggling to find what I need in 3ds Max API
Is there any way to collapse an animation from maxscript or MaxPlus?

The CollapseController maxscript function is used by the Curve Editor Utility. You can read the source by doing showSource CollapseController

Oh thanks , I ended up writing a custom bake animation system.
Good to know anyway I hope this will help someone else as well.
Thanks