FK to Stretched IK Blend Problem

Hi

I made a ik/fk leg. and ik setup can stretch.
When i blend from fk to ik in stretched pose, i want the bind joints stretch as i increase the blend attribute (actually decrease. 0 means 100% ik and 10 means 100% fk).

how i can do that ?
I tried using expression for x scale of bind joint, but it was not working. because it drives the scale from 0 (instead of 1) to IK joints scale.

the expression i tried to use was something like this


$ik_scale = jnt_hip_ik_l.scaleX;
$blend = left_foot_ctrl.ikFkSwitch;
$blend = $blend / 10;

float $scale = 0;
if( $ik_scale > 1 )
	$scale = $ik_scale * $blend;
else
	$scale = 1;

jnt_hip_l.scaleX = $scale;
jnt_knee_l.scaleX = $scale;

i always use the blend colors node to blend between ik and fk rotations, so blending between scales is just adding another blend colors node onl attached to the scale attributes

Are you saying you want the stretch to always be the same for the ik and fk even when blending between the two? Use the blend color node as peerke88 suggested, this would mean color1 attr would be the scaleX of IK and the color2 attr would be scaleX of the FK, with the result attr plugging into the bind joint scaleX attr. then whatever attr or control you are driving the ik/fk switch with you will drive the blendColor node with.

Yes blend node is a better way thank you guys