Adverti horiz upsell

oa Export SDK 1.0.0 for Maya (maya script)

Exports Set Driven Key Commands to Script Editor

License
Button download
1,388 Downloads

Compatibility

  • 7.x, 6.x

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:12/10/2005
Last Modified:12/10/2005
File Size: 21.1 KB

 

 

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 Bug System to report any bugs.
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.

People who favorited this item:

  • josh burns
    josh burns
  • Gábor Richárd Rákossy
    Gábor Richárd Rákossy
  • shreepad agaskar
    shreepad agaskar
  • KL T
    KL T