I am trying to use MAXScript to delete all animation Keys from my scene using MAXScript. At the moment I am using the mouse and pressing CTRL + A to select all objects thus bringing up the keys for all objects in my scene. I am then selecting all Keys on the animation timeline using my mouse, and then selecting all keys on the timeline, and then deleting them. How do I do it in MAXScript?
I have found this in the MAXScript documentation, but I don't know how to use it:
deleteKeys <controller> [#allKeys | #selection]
I tried using
deleteKeys globaltracks #allKeys
but that didn't seem to do anything.