PDA

View Full Version : Putting a "negativeSpin" on a attribute


cgcreator
07-03-2003, 11:14 PM
This script takes any attribute that is selected and has an input to it(i.e. expression, animation curve, things connected though the connection editor) and puts a negative spin on it. Just select the attribute in the channel box and RMB on it and select Negative Spin from the menu that pops up and then presto the number is now the negative of what controls it.

You need to install this script into the “C:\Program Files\AliasWavefront\Maya5.0\scripts\startup\” or whatever your startup directory is. You may want to save your old generateChannelMenu.mel as a different name incase you want to uninstall this later.

Here is the link: negativeSpin (http://www.cgcreator.com/generateChannelMenu.mel)

cgcreator
07-03-2003, 11:15 PM
This shows one use for my script;

http://www.cgcreator.com/images/negativeSpin/Stage1.jpg
You create hand setup with a control object (curve, locator, ect.)

http://www.cgcreator.com/images/negativeSpin/Stage2.jpg
You link the control object’s rotation attributes to your hand joint.

http://www.cgcreator.com/images/negativeSpin/Stage3.jpg
Only problem is that some times the axis are in the wrong direction cause the hand joint to rotate in the wrong direction.

cgcreator
07-03-2003, 11:16 PM
http://www.cgcreator.com/images/negativeSpin/Stage4.jpg
Select the attribute that has the input control on it, in this case it’s the L_Wrist joint. Select the attribute and right-mouse click, as if you were going to key that attribute, and select the newly added menu item “Negative Spin”. Note that its not shown here because I could not do a screen capture of the menu.

http://www.cgcreator.com/images/negativeSpin/Stage5.jpg
The script runs and cause the hand rotation to rotate in the right direction.

Please try this out and let me know what you think. I have a little bit more work on this… things that I would like to change.

CGTalk Moderation
01-15-2006, 01:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.