The human hand is probably the most complex part of the human body in terms
of articulation and shape.  The shape of a hand can change radically depending
on the position of the fingers.  Even the palm is a highly flexible area,
because of the spaces between the bones.  This is all made more complicated by 
the nature of human skin, which rides the surface of the bones and can stretch 
or bunch up, depending on the forces applied to it.

When computer animation can do cloth that accurately detects for collisions
and accurately wrinkles depending on stress, then computer animation will
be able to do a realistic working hand.  Until then, we're stuck trying to
approximate the result.  

This hand is a compromise.  It attempts to mirror the proportions and shapes
of the human hand, but it has been built to work well with surface operations.
I hope that what we give up in realism we make up in flexibility.

The fingers are referred to in the following way:

right palm	rpalm
right index	rind
right middle	rmid
right ring	rring
right pinky	rpink
right thumb	rthumb

left palm	lpalm
left index	lind
left middle	lmid
left ring	lring
left pinky	lpink
left thumb	lthumb

The left hand and fingers are the right hand data scaled by -1 in x and 
with their polygons reversed.  If you are interested in how the hand is put 
together, you're better off looking at the right hand.

Each finger (not counting the thumbs) has four user controls.  For example,
rind1,rmid1,rring1,rpink1/rx controls whether the fingers are close together or
spread apart.  To curl the right index, you need to use rmid3,rmid5,rmid7/rz.
These channels determine how each joint of the right index finger is bent.
The intervening channels (rmid2,rmid4,rmid6/rz) are controlled automatically.
See the segments menu to see how each is tied to another channel.

You can tie the finger rotation channels to one or more channels to
simplify the operation of the fingers.  Right now, rind3,rind5/rz are tied
to rind7/rz, so that I can curl the finger with a single channel and don't
need to set all three.  I've done this for all the fingers.

You could take this a step further and tie all the finger rotations to a
single channel.  This would enable you to open and close the fingers
simultaneously, but would not give you control over individual fingers.
It all depends on the needs of your scene.  If the character is in long
shot, this could be a time saver.  This is also a useful shortcut if a hand
has to grasp some cylindrical object.

Differencing (Blending)
-----------------------

There is a lot of subtle differencing (using the blend sop) going on in 
order to get pleasing shapes in a variety of positions.  Rpalm has 
differencing where the four fingers are rooted to it.  This is so when 
the fingers are bent, they still connect to the palm in a reasonable looking 
fashion.  Rthumb2 also has some differencing to help the thumb as it rotates 
in front of the palm.  In addition, there is some automatic scaling that 
happens to this section to help the overall shape.

Rwrist/tz shifts automatically depending on the rotation of the palm.

All these translates, scales and differencing all are done by trial and
error in order to make the hand work. 

Skinning
--------
All the component parts of a hand get merged into rhand where they are
skinned and cleaned, resulting in a hand without seams.  This operation
is similar to the one with the head demo.  The only channels associated
with the rhand and lhand objects are color.  Beyond that, they are 
merely a place to assemble data.  There are no transformations applied
to rhand and lhand and they exist outside of any hierarchies.

It is necessary to fill in the box for xform object in the merge sop
in order to merge objects that have been transformed.  If you are merging
things into the rhand, you can type rhand or world into the xform object
box.  If you leave this box empty, you will see that the merged objects
are not in the correct position.

Aliases
-------
There are a number of aliases in place for display and animation purposes.

adisplay turns on the display for everything you need to animate the hands.
rdisplay turns on the display for rendering the hands.
aprops turns on the display for animating the props.
rprops turns on the display for rendering the props.
rhandon turns on the display for animating the right hand.
rhandoff turns off the display for animating the right hand.
lhandon turns on the display for animating the left hand.
lhandoff turns off the display for animating the left hand.

rarm scopes the channels for animating the right arm and palm.
rfingers scopes the channels for animating the fingers and thumb of the 
right hand.
larm scopes the channels for animating the left arm and palm.
lfingers scopes the channels for animating the fingers and thumb of the 
left hand.

A Trick With Hierarchies
------------------------

The demo animation includes a common hierarchy problem.  For some frames,
the cups rest on the table and don't move.  For other frames, a cup moves
with a hand.

You might assume that the way to accomplish this is to change the parent
of a cup over time.  This is possible using the parent channel.  However,
the big drawback to this approach is how to change the parent and reposition
the object so it doesn't appear to have shifted.  This can be very complicated,
especially if the hierarchies contain lots of objects.

There's a cheat you can use, and it's used in the demo animation.  The
three cups on the table never move!  Their display is turned on and off
using the display channel.  The cups that do move are always attached to
the palm objects and they are also turned on and off with the display
channel.

It is relatively easy to match the position of the cup on the table
and the cup in the hand using inspect mode.  If you inspect cup1, the
leftmost cup on the table, and put the camera in ortho mode, you can then
line up the cups easily in the xy plane.  Then you can rotate the inspect
view to be a top view and line up the cups in the xz plane.

The advantage to this method is that you have two cups to line up.  If
you have one cup changing parents, it is more complicated to maintain
position.  

Clipping Trick
--------------
For the reveal of the sign, I used a clip sop that animated using a spare
channel for the signpost.  The same spare channel was applied to the
clip sop for the sign object.  This provided me with an animated wipe
as the cup rises off the table.
