PDA

View Full Version : IK Spline stretchy ON/OFF switch?


Geuse
11-25-2008, 11:03 PM
Hi all!
I followed Schleifer's "animator friendly rigging" series and wonder how you would implement a float attribute (I want to be able to blend it) to the "torso_ctrl" to adjust the level of stretchyness/squishiness in the spine. Right now it's able to squish when arcing his spine and I'd like to key that off. For those of you who aren't familiar with the setup I'm afraid I can't explain cause i don't understand it exactly how it's working. However it's all driven by expression so I'd like to know the way to write it and add it to that same expression.

I googled the web for similar setups but couldnt find one using expressions since they are easier to setup. I looked at Jason's forum and there was a question regarding the same issue, but it wasn't answered so I thought I'd try here as a last resort cause I would really like this feature, so pretty please you GODS of rigging, please help =)

Boucha
11-26-2008, 12:22 AM
You could use if - else statement in the expression or simply use some utility nodes such as condition and multiplyDivide node to get the result...
For example, if the attribute is greater that 0 or desired value then output stretchiness and if it's 0 then output default setting (no stretchiness)...
You could just try out different connections logically...

Geuse
11-26-2008, 07:31 AM
I sincerely thank you for your prompt answer. However, if you're able to take the time and effort to show me how to write this I'd greatly appreciate it. And if I could request that you write an expression for it I can't thank you enough. And also I would really enjoy a clamp value to blend in and out the stretchiness. that's it....

Actually I don't think that solves anything. I would run into a problem with my arms moving around slightly when rotating the "hips_ctrl". So I think I'll just discard this whole idea and go back to parenting the arms directly to the "upper_body_ctrl". Guess I just have to adjust the "upper_body_ctrl" manually to maintain the original length of the spine.

CGTalk Moderation
11-26-2008, 07:31 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.