September 27th, 2006

abCleanAnimationCurves 1.0

A script that will quickly delete all excess flat tangents keys on selected animation curves.

Instructions

Select the curves you want to clean up and run the script by entering:

abCleanAnimationCurves;

in your command line or script editor.

The default tolerances should work well, but, if you want the script to be more or less restrictive with the keys it chooses to delete, you can adjust the values of $angleTol and $valueTol.  Both are defined at the beginning of the abCleanAnimationCurves() procedure.  $angleTol is the additional degrees of variation above and below zero in which tangents will be considered flat.  $valueTol is the tolerance that neighboring key values need to fall within to be considered equivalent.



Updates

09.27.06:   Removed a procedure that I wasn't using.

comments

Sune
October 19th, 2006 said:

Great. Just what the doctor ordered. Might add a proc that lets you run the script, by just inputting an array of nodes. Hope I'm not violating any rights :-) Thanks


go on, say it






  

about this post

"abCleanAnimationCurves 1.0" was posted on September 27th, 2006 under Mel Scripts.  It was created using Maya.

This entry was last updated on September 29th, 2006.

next entry

previous entry