Hey All,
I just made a little blog post about the different ways to do an IK/FK switch in Maya here.
Here’s what I concluded and I was hoping for people to chime in and say more ways to achieve the IK/FK switch in Maya:
I’ve been doing some research on IK/FK switching solutions for Maya because I think it is one of the more interesting and practical problems to encouter while Rigging. I have found 4 different methods to achieve a seamless IK/FK switch in Maya.
- Use HIK in Maya or use another middleware/plugin. HIK is a probably more powerful than anything you would make on your own, but, you have to do it their way and use HIK for your entire rig to take advantage of it. It also only works for bipeds.
[ul]
[li]Documentation: http://download.autodesk.com/global/docs/maya2013/en_us/index.html?url=files/GUID-945BCFFE-A772-4D52-87B8-FCFC50C974FB.htm,topicNumber=d30e282498
[/li][li] Video: http://www.youtube.com/watch?v=394qaUPDZ4U , http://www.youtube.com/watch?v=blLBRmNA3zI
[/li][/ul] - Create 3 different bones, make one IK, leave one alone (FK) and then orient constrain the third to the IK and FK bones respectively. You then use Set Driven Keys to lerp between the two. This solution isn’t really ideal for real time due to the addition of 6 bones for each ik/fk switch you want to include on your character. It is an easy solution that has the potential to produce some decent results.
[ul]
[li]Brian J. Immel does a nice job describing it here:http://www.jawa9000.com/Technical/fk-ik-arm/fk-ik-arm.htm
[/li][li] Tyler Thornock describes it here as well: http://www.charactersetup.com/tutorial_ikfkarm.html
[/li][/ul] - Create a button that switches between IK and FK. The button takes the transforms from either FK or IK and then enables or disables IK and passes the transforms back into your joints and pole vector position.
[ul]
[li]Lionel Gallat describes the process here: http://seithcg.com/wordpress/?page_id=30
[/li][/ul] - Use scriptJob to have everything done automatically for you. This is the most complicated but in my opinion the sexiest way to do an IK/FK switch. It would take me a while to describe so I’m not going to bother. *There may be performance issues with this method as well because of how many times scriptJob is called so take note.
[ul]
[li]Here is an extensive video series where Chad Robert Morgan talks about the script he creates to make everything automatic: http://www.youtube.com/watch?v=KNfSG1DEj58&lr=1
[/li][/ul]
Also, checkout this thread on Automatic IK/FK switch which is in a similar vein but I think more specific, hence this thread: http://tech-artists.org/forum/showthread.php?1451-Automatic-FK-IK-switching-in-a-Maya-rig.
If you have another way to do it or preferences about the methods I found, comment below!