Results 1 to 3 of 3
  1. #1

    FK/IK matching (a.k.a. FK/IK snapping) in Blender

    Hello everyone,

    For anyone who doesn't know, FK/IK matching is a very important function in a character rig that makes it much more intuitive to use and also makes the animator's life much easier in many cases. It is a basic function according to many standards, but is unfortunately not so basic to set up.

    FK/IK matching is different from FK/IK blending, which is much easier to set up and is also the solution proposed by pretty much all the available Blender tutorials out there on FK/IK switching. So for those of you who do not yet know, FK/IK matching means that when you switch a character's limb from FK to IK, or vice versa, the limb retains the position it was in before the switch, without the need to rotate one set of bones in an attempt to match the other set. This can save a lot of time when animating. It also saves the time of animating the blend between FK and IK to get a smooth transition - because it's seamless - and the switch happens in a single frame. It is usually set up to be controlled by a toggle switch or a couple of buttons, one for fk-ik and one for ik-fk, instead of a slider.

    The great news is, it's been done in Blender, but the problem is that scripts that worked with versions 2.4x don't work on current versions. The most recent thing I've found is this video on Vimeo by kunkun, who has implemented it in Blender 2.5 (which still might not work on current versions, since the Python API was changed during 2.5, but it still looks like a solid solution that we can learn from):
    https://vimeo.com/16939599
    He even posted links there for downloading his file but they don't work.

    Let's find a solution to this! We need the very best rigs possible!
    Last edited by galonce; 17-Aug-12 at 04:53.



  2. #2
    Member
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    469
    Have you looked at the code used in Rigify rigs?
    "...or am I just missing something obvious?"



  3. #3
    Member revolt_randy's Avatar
    Join Date
    Oct 2008
    Location
    In a van, DOWN BY THE RIVER!!
    Posts
    2,725
    Rigify does indeed have this feature, but I couldn't make sense of it all. I was planning to tear the code apart bit by bit to figure it out, but then I found this post:
    http://blenderartists.org/forum/show...ctions-for-2.5
    Which is the basic building blocks of code to implement this feature in a rig. After playing with that bit of code and looking at rigify's rig_ui.py script, I was able to get it to working. FK to IK snapping was pretty straight forward to get working. IK to FK snapping required another function - 'match_pole_target' - from rigify that isn't found in the link above to get it working. Took me a couple of hours to figure it out, but it wasn't that bad.

    Randy
    There's no such thing as gun control, but there is people control......
    January 11 Second Club WIP| My Vimeo Channel with Blender Tutorials



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •