Inspired 3D: Creating and Understanding Skeletons and Kinematics
4. Highlight rotate -r -os 180 0 0; in the Script Editor.
5. Press Enter. The LRA will flip 180 degrees and the joints will have a similar orientation.
3. Select the LRA for joint3.
When you execute the MEL command by highlighting the text, you leave the text in the input section of the Script Editor. If the text was not highlighted, you still would have executed the command, but the text would be erased from the input field. The text will still be available in the history area of the Script Editor. If you want to grab that text to reuse at a later time, find it in the history, then highlight it either by triple-clicking on a single line of text or by using the left mouse button, and then use the middle mouse button to drag the text back into the input area. With the text highlighted in the input field, you can copy (Ctrl+C) and then paste (Ctrl+V) the text into a text editor.


Interactively Altering an LRA
2. Expand the Transform Attributes and Joint tabs (see Figure 8). When you alter the rotation of an LRA on the selected joint using a script, you will see that the rotate axis and the joint orient change values exactly opposite each other in order to keep the joint from rotating. Manipulating the LRA interactively changes those values in the same fashion, but without the accuracy. If your intention is to flip an axis a set amount, using a script is the best way to do so.
If youre making changes interactively, be careful not to alter the alignment of the axis thats pointing down the bonemost likely the X-axis. If the X-axis is out of alignment, then doing a simple rotation of the joint in Z or Y will change values on all three axes. This is problematic for a character because the rotation of the joints should be on their true axis. Its very difficult to animate a character when you must adjust three axes to achieve a rotation that should be handled by just one axis.
Manipulating the Location of Joints
Translating joints. If you translate a joint that is a child of another joint, you will alter the relationship of its local rotation axis to its parent. However, if you translate along the direction of the bone (most likely in local X), you will not affect this relationship. The parent will be connected to the child by a bone, but it will no longer point in a direction down that bone. If a joints position has been modified in any direction other than along the bones axis, you may have to reorient the local rotation axis.
Scaling the bone length. If you choose to scale the joint, youll be adding or subtracting the scale values to the joint.
Rotating joints. If you choose to rotate the joint, youll be adding or subtracting the rotation values to the joint.
Rotating the joint orient. This method leaves the rotation values for the joint as they are and rotates the relative direction of the joint wherever you direct it. This, in combination with translating the joint along its bone length (again this is most likely the X-axis), is the best method with which to place your joints once they have been created. Well elaborate on this below in the sidebar entitled Getting a Joint to Hit the Mark.
Translate the joints pivot point. Translating the joints pivot point is distinctly different from the other methods, in that when you use it, the joints children are not affected by the translation. For example, you can make an adjustment to your knee joint and leave the joints of the foot in place. If youre happy with your foot joint placement, using one, two, or more of the methods listed previously can be an arduous process. Your goal when you start the skinning process is to have translation values in only one channel for all of your joints in a chain, and again, it is usually x.
When you have the LRA selected for a joint, you can interactively alter the rotation axis with the standard Rotation Manipulator tool. When you change the LRA with this method, you can look in the Attribute Editor to see the results. Since youre not actually rotating the joint, you wont see a numerical change in the Channel Box.
1. Select an LRA on one of the joints and then open the Attribute Editor.
There are several ways to manipulate the location of your joints after you have created them. When you create a joint chain, you build a hierarchy of joints; therefore, when you translate one of the parent joints, the children will be affected. Each of the following methods has certain advantages and disadvantages:























Post new comment