Joint Orientation

by Brian Immel

Joint Orientation

Why is Joint Orientation Important

  1. Makes it difficult to manage animation curves and set driven keys
  2. May bend joints in unexpected ways

Remember the Branches?

Each branch can have its own direction unique to that branch.

It doesn’t really matter too much if one branch has another orientation direction than another branch. Some purists will stay that it is and to a point they are right. But for now, just remember the KISS rule (Keep It Simple, Stupid).

It is important to make all the joints of one branch have the same joint orientation!

Remember when we mirrored some branches? You might have noticed by now that the leg and arms branches are completely opposite of one another.

How to orientate joints

1. Select the root joint.

2. Click the Select by Component Type button in the Status Line.

3. Turn on the selection mask called Miscellaneous (looks like the question mark). This will show every single joint’s orientation because we selected the root joint.

4. Scan each branch and look to see which joints have what orientation. Look to see which direction the axis have the majority of facing directions (i.e. Z forward, X to the right or X down, Y to the left, etc.). Refer to Figure 12 to see an example of a Spine that is out of alignment and one that has good alignment.

5. Select the joint that is not facing with the crowd, and rotate in the direction in needs to face. But you will find yourself a new problem. When you rotate this joint, you will notice that the rotation attributes in the Channel Box do not update, nor will they. We are changing the component information of the selected axis. “So how do we rotate these joints to be in perfect alignment with the other joints of this branch?” Keeping in mind that everything you perform in Maya is a scripted function or tool, you can see your commands being echoed in the Script Editor.

Making orientating joints easier via MEL

>

1. The upper section of the Script Editor is the history section and the lower section in the Input Field.

2. Highlight and copy the script that looks something like this:
i. Rotate –r –os –41.227934 0 0;

3. This script tells Maya to rotate the selected joint on the X axis –41.227934degrees.

4. Analysizing what is going on in this script