I basically have my FK bone chain, IK bone chain, blend bones, and my control object with the IKFK switch attribute. I'm trying to get the blend bones to stretch accordingly depending on which system they're being driven by. I tried doing this by applying an if statement to the x value of the blend bone that tells it to match the x value of the IK bone when the slider is set to IK and vice versa. And it works for the most part.
The problem I'm having is that all the in-between values on the IKFK slider don't blend like they're supposed to (for example: when the slider is set to 0, I should be getting a 50% influence from both bone systems).
Do you guys know how I can rewrite the if statement so the IK and FK values blend? Or is there maybe a better way to do it that doesn't need an if statement?
This is the if statement (I don't know much about scripting, so I probably butchered it):
if (IKFK==-1) then ( XvarIK ) else if (IKFK==1) ( XvarFK )
Any help would be appreciated.