I have one last major hurdle to get over for my character and that is rigging the sword to switch between attaching to the hand and following the scabbard.
Here is my set up.
Scabbard - Has a bone and via various constraints is parented to the character and works well.
Sword - There are three main bones. 1-The sword bone, which allows me to easily animate the sword and when the IK hand is attached will move the arm as well. 2-sword slide bone which allows me to slide the sword bone along the length of the sword changing it pivot. This also allows a nice sliding motion when the character pulls it out of the scabbard. 3 - A sword attach bone which is the target for the hand IK bone to attached to.
The sword currently is also parented to the scabbard for when the character is not using it. This allows the sword to move with the scabbard.
Hand - via the IK bone, is attached to the sword attach bone with a copy transforms constraint. When the influence is turned down the hand and sword are separated and move independently. When turned up they are attached. Animating the sword moves the IK hand/arm.
For the sword and hand I followed CGMasteres ninja rigging tutorial series.
My challenge comes when I want to switch between the sword following the scabbard and attached to the hand.
When i turn down the influence between the sword and scabbard the sword returns to it rest position and if the hand is attached it will follow.
What I need is a way that the sword will follow the scabbard. the hand attaches to the sword and some how turn of the influence between sword and scabbard but the sword stay in the same location. I have tried a number of things, but am at a loss. I feel like there needs to be something similar to a IK/FK snap for an arm or leg, but for the sword instead.
Any ideas? I have looked several times for tuts on this, but people seem to only cover attaching the hand to the sword.
Anyway, hope someone can help.