i connect original distance/current distance to a condition node to check if value is greater than one. if so, i connect that to scale X. it works fine. but, how to make it a switchable if i create a enum attribute to ik controller to turn on/off stretchy?
How to make a switchable stretchy IK?
You can use set driven key to change the condition statement depending on the value of the switch. That way, if it is 0 you change the statement to something that causes the evaluation to go False and likewise when stretch is on, the condition is changed to something that will make the evaluation go through.
At least that is one way of doing it 
driven keys should be used sparingly. instead of connecting scale directly to a joint, use one more condition to check value of “scale on/off” switch. “value of true” should be your scale value, coming out of first condition, “value if false” should be 1.0, that is, “no scale”.
you can also use a blend color node to blend the value between 1 and your stretched scale, even tho i am not a fan of stretching bones on scale
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.