covert
11-08-2010, 09:55 PM
I have a script that uses rotationInterpolation to fix my animation curves before exporting as FBX.
// Fix curves
string $all_animCurveList[] = `ls -type "animCurveTA"`;
string $all_animCurve;
string $rot_animCurveList[];
for ( $all_animCurve in $all_animCurveList )
{
if ( `gmatch $all_animCurve "*_rotate?"` ) stringArrayInsertAtIndex (0, $rot_animCurveList, $all_animCurve);
}
selectKey -clear;
selectKey -add -k $rot_animCurveList;
filterCurve $rot_animCurveList;
rotationInterpolation -c quaternion $rot_animCurveList;
rotationInterpolation -c none $rot_animCurveList;
Now the problem is that upon exporting to FBX, the curves get screwed up.
(As if it had not properly completed its evaluation of that second rotationInterpolation.)
Also, if I remove that second rotationInterpolation, the FBX exporter crashes.
(As if it does not like that my curves are in quaternion.)
Ideas?
// Fix curves
string $all_animCurveList[] = `ls -type "animCurveTA"`;
string $all_animCurve;
string $rot_animCurveList[];
for ( $all_animCurve in $all_animCurveList )
{
if ( `gmatch $all_animCurve "*_rotate?"` ) stringArrayInsertAtIndex (0, $rot_animCurveList, $all_animCurve);
}
selectKey -clear;
selectKey -add -k $rot_animCurveList;
filterCurve $rot_animCurveList;
rotationInterpolation -c quaternion $rot_animCurveList;
rotationInterpolation -c none $rot_animCurveList;
Now the problem is that upon exporting to FBX, the curves get screwed up.
(As if it had not properly completed its evaluation of that second rotationInterpolation.)
Also, if I remove that second rotationInterpolation, the FBX exporter crashes.
(As if it does not like that my curves are in quaternion.)
Ideas?
