DESCRIPTION
This script exports the Set Driven Key commands of all selected objects
to the Script Editor. The output looks like this:
//START EXPORT SET DRIVEN KEYS
//Set Driven Keys for leftEyeJoint.rotateX
catch(`setAttr leftEyeControl.translateY -1`);
catch(`setAttr leftEyeJoint.rotateX 45`);
catch(`setDrivenKeyframe -itt linear -ott linear -cd leftEyeControl.translateY leftEyeJoint.rotateX`);
catch(`setInfinity -pri constant -poi constant leftEyeJoint.rotateX`);
catch(`setAttr leftEyeControl.translateY 0`);
catch(`setAttr leftEyeJoint.rotateX 0`);
catch(`setDrivenKeyframe -itt linear -ott linear -cd leftEyeControl.translateY leftEyeJoint.rotateX`);
catch(`setInfinity -pri constant -poi constant leftEyeJoint.rotateX`);
catch(`setAttr leftEyeControl.translateY 1`);
catch(`setAttr leftEyeJoint.rotateX -45`);
catch(`setDrivenKeyframe -itt linear -ott linear -cd leftEyeControl.translateY leftEyeJoint.rotateX`);
catch(`setInfinity -pri constant -poi constant leftEyeJoint.rotateX`);
//END EXPORT SET DRIVEN KEYS
Could be used to mirror Set Driven Keys
when used with the Search and Replace feature (i.e. Search for "left",
Replace with "right").
TO USE
Copy all the mel scripts in this zip into your scripts directory and restart Maya.
Execute 'oaExportSDK' to bring up the UI.
Select some driven objects, set the options, and press 'Export Set Driven Key Commands'.
HISTORY
v1.0 (December 9, 2005)
o Original Release
IF YOU ENJOY THIS MEL SCRIPT, PLEASE RATE IT. I WOULD APPRECIATE IT. THANK YOU!
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.