FCurvesOpt

Abstract: Removes any fcurve with static contribution (All its keys have the same value).

Description: Removes any fcurve with static contribution by processing all the keys if they have the same value, using a user defined tolerance.

Working Scenarios: This tool was used originally along side other scripts in the DirectSkeleton custom exporter to remove unwanted fcurves so we can get more optimized characters in real-time applications.
You can still use it on any object to optimize its animation.

User Usage: Select any object, run the script.

Developer Usage: You can call this tool from any other scripts using the following function call:
FCurveOptimizer( dTol, oObjCollection )

Where oObjCollection is an XSI objects collection that contains all objects you want to filter.
dTol is decimal value that specify the tolerance for the value comparison.
This tool returns true if it succeeds and false if it failed for any reason.

Nature: Script

Applies To: XSI 3.5 on NT,Win2K,XP

Languages: VBScript