• Fernanda

Stretchy Spline IK Script

Today I'll be talking about my Stretchy Spline IK Script! It is based on this great tutorial by the Maya Learning Channel on Youtube: "Creating a Character Rig - Part 5: Torso squash and stretch (Advanced)"

First we'll go ahead and setup the chain itself with everything we'll need, then we'll run the script and see the magic happen in the node editor!

Link to the script

The script works around an IK Spline chain. It takes the current length of the curve and divides it by the original length, which gives us a percentage of how much that curve was stretched. It then takes the scale of the down axis of all joints and multiplies them by that value. As a result, the joint chain scales to match the stretch of the curve.

It also takes volume preservation into account, so while the down axis is being scaled one way, the side axes will be scaled the opposite. The value of this operation will be 1/sqrt(down axis scale). Here's a few diagrams taken from the video I mentioned earlier (highly recommend it!):

It's a very simple script but it saved my life when I had to rig an octopus in college. Once I finished my first stretchy tentacle I knew there was no way I wanted to do that 7 more times manually. haha

Keep on riggin'!


54 views0 comments

Recent Posts

See All

Tech Art Tomfoolery: Unreal VR and glsl

Happy Tech Art Tuesday! My Youtube Channel has 200 subs now! That means I'm famous! I don't have a tutorial today but I did want to showcase some of the stuff I did this weekend. On Saturday morning I

On the Subject of Interviews

[ Special thanks to my friend and Senior Lecturer at DigiPen, Sonia Michaels, for sharing some great info for this post! :) ] The culture surrounding interviews is always changing. When I was job hunt