PDA

View Full Version : mocap or baked animation cleaning with simplify curve or mel scripts


miabe
01-26-2003, 07:03 PM
hi!

I desperately try to clean some mocap/baked animation data in maya but can't get it to work the way I need it.
the simplify curve function in maya give strange results and I can't figure out, how to control it. I'm looking for a way to simply tell maya to leave the keyframe every # frames and to leave it if a values difference is less than #, and remove it otherwise. the simplify curve option seems to rebuild the curve and move the key to non integer values, even when I want to remove only the adjacent keys with exactely the same values.
I tried all the cleaning scripts from the highend mel section but without success. the keykleanwin script sounds good but I can't get it to work. (-Cannot find procedure "RS_KleanKeys"- when I press the kleankeys button) :annoyed:
any ideas?

cu :) mia

miabe
01-28-2003, 06:33 AM
hm, no suggestions at all? :hmm:
is there maybe a script guru out there who has some free time and feels like checking on this RS_KleanKeys mel script? unfortunately the given email adress of the author doesn't work anymore...
it can be found here:

http://www.highend3d.com/files/dl.3d?group=melscripts&file_loc=keyKleanWin-v1.1-.zip&file_id=1128

thanks :) mia

dwalden74
01-28-2003, 11:33 AM
I´ve tried that script and I think it worked pretty well. Just change line 14 to:

global proc RS_KleanKeys()

..and re-source it. Not sure why the author made a local proc instead of a global one...

BTW, I thought there was also another script like this on Highend, which was like the Simplify Curve Options window, except with sliders so you could change it interactively... I think this was also a useful script..

Also, if you now MEL you could write a tool pretty quickly for this, which might bettere suite your own needs. Just look under the "simplify" command.

Hope this helps!

:beer:
David

miabe
01-28-2003, 12:43 PM
yes it works now! thats great! thanks a lot! :beer:
the other script is nice, but uses the simplify command, which really gives unwanted results. I think it's the algorithm. it always completely rebuilds the curve and adds keys where it shouldn't.

cu :) mia

steveblake
01-28-2003, 01:31 PM
This is interesting, I'm baking some stuff down and want to do similar things.

The other mel refered to is sds_mocap_cleaner v1.0 and yes it's on Highend...

Goob
01-28-2003, 02:45 PM
cleaning the fk keys in a skeleton without sliding feet a serious challenge. I would suggest to create locaters and point constraint them on the bones, bake the simulation and clean the translation keys of the locators. with ik and constraints you can bring the animation back on a skeleton.

good luck


goob.

steveblake
01-28-2003, 03:31 PM
Nice idea goob! Fortunately at the moment my characters don't have feet, or legs for that matter...

On the downside there are some 2-300 of them

<GULP!>

Still, I'm sure miabe will apreciate your ideas...

CGTalk Moderation
01-14-2006, 06:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.