Hi,
I've been trying for a while to code in maxscript a function to move all the keys of a biped on the time line to make the motion start at an other time. But it's just a nightmare and I did not find any simple way to do it...
For others stuffs than a biped the following work fine
selectKeys $.controller
moveKeys $.controller offset
But when it comes to the biped it's just a nightmare
the moveKeys function move only the keys of controller (not the keys of the whole biped)
the moveKey function set the values of all keys to zero, and then lose the motion of the given bone
I did not find any function to get a collection of all the keys of a biped to try to modify the .time attribute by hand...
Any idea how to do it? It should definitely be possible as when you select the root of the biped manually and move the key frames with the mouth it just move the whole motion...
Thanks
Ludovic
Replies
Anyway I found my answer, so if anyone get the same problem here is how I solved it
More than likely you'll need to find out what the current keys and attributes are, per biped controller, then create new keys where you want them and destroy the old keys. It won't be as simple as select keys, move keys. Which is one of the reasons people hate biped, the maxscript side of things is crazy complex and very different than the way everything else is handled in max... yea for buying plug-ins and stuffing them in max!! good job guys!
Here is the solution