JayWalker
02-28-2009, 04:21 AM
I have a problem and wonder if anyone can help me out with it. I need to get this script to work in real time and not just at playback....
//Output[i] = traget1[i] * Blender[i] + traget2[i] * (1.0 - Blender[i])
float $Target1[]=`xform -q -ws -t pCube1`;
float $Target2[]=`xform -q -ws -t pCube2`;
float $mixer1;
$mixer1 = con.mix/10;
pSphere1.translateX= ($Target1[0] * $mixer1 + $Target2[0] * (1.0 - $mixer1) );
pSphere1.translateY= ($Target1[1] * $mixer1 + $Target2[1] * (1.0 - $mixer1) );
pSphere1.translateZ= ($Target1[2] * $mixer1 + $Target2[2] * (1.0 - $mixer1) );
to sum up the script it always me to tween between two points in world space. a double parent constraint for some reason will not solve correctly in one area of the rig.
//Output[i] = traget1[i] * Blender[i] + traget2[i] * (1.0 - Blender[i])
float $Target1[]=`xform -q -ws -t pCube1`;
float $Target2[]=`xform -q -ws -t pCube2`;
float $mixer1;
$mixer1 = con.mix/10;
pSphere1.translateX= ($Target1[0] * $mixer1 + $Target2[0] * (1.0 - $mixer1) );
pSphere1.translateY= ($Target1[1] * $mixer1 + $Target2[1] * (1.0 - $mixer1) );
pSphere1.translateZ= ($Target1[2] * $mixer1 + $Target2[2] * (1.0 - $mixer1) );
to sum up the script it always me to tween between two points in world space. a double parent constraint for some reason will not solve correctly in one area of the rig.
