Tuesday, March 13, 2012

Hand Joint Rigging MEL Script

Yesterday I was getting bored of rigging all 15 finger bones in each hand to curl, so I wrote a script that will expedite the process.
Basically, it relies on very specific joint naming conventions to construct driven keys that operate each finger numerically (the channel editor on the right). The whole point is to get the fingers to open and close with precision and ease, so I'm happy how the script turned out.


The naming convention to get this rig to work is as follows: 
  • Name the controller (in this case, just the joint wrist) LeftHand and RightHand, respectively
  • Left Index joints 1, 2, 3, and end: index00_L, index01_L, index02_L, index03_L
  • Left Middle joints 1, 2, 3, and end: middle00_L, etc.
  • Left Ring joints 1, 2, 3, and end: ring00_L, etc.
  • Left Pinky joints 1, 2, 3, and end: pinky00_L, etc.
  • Left Thumb joints 1, 2, 3, and end: thumb00_L, etc.
  • Right fingers are the same except ‘_R’ instead of ‘_L’, obviously.
You can download the script here.