wajdyf
05-01-2006, 12:25 PM
Hello,
I am facing a problem with expression node evaluation .
a simple expression like pSphere1.tx=pCube1.tx; will evaluate real time (no problem)
bearing in mind that the "Evalution" drop down menu is set to "Always".
but an expression like :
float $x1[]=`xform -q -ws -t curve1.cv[6]`;
float $x2[]=`xform -q -ws -t curve2.cv[6]`;
float $xf[];
$xf[0]=($x1[0]-$x2[0])*0.5+$x2[0];
$xf[1]=($x1[1]-$x2[1])*0.5+$x2[1];
$xf[2]=($x1[2]-$x2[2])*0.5+$x2[2];
pSphere1.translateX=$xf[0];
pSphere1.translateY=$xf[1];
pSphere1.translateZ=$xf[2];
which is also not that complex , and is connected to an attribute or in this case multiple attrs, will not evaluate untill the time have changed , (scrubing).
MY Question: How do I make my expression nodes evaluate realtime, regardless of their content.
something a bit more stable than scriptJob.
Thank You
I am facing a problem with expression node evaluation .
a simple expression like pSphere1.tx=pCube1.tx; will evaluate real time (no problem)
bearing in mind that the "Evalution" drop down menu is set to "Always".
but an expression like :
float $x1[]=`xform -q -ws -t curve1.cv[6]`;
float $x2[]=`xform -q -ws -t curve2.cv[6]`;
float $xf[];
$xf[0]=($x1[0]-$x2[0])*0.5+$x2[0];
$xf[1]=($x1[1]-$x2[1])*0.5+$x2[1];
$xf[2]=($x1[2]-$x2[2])*0.5+$x2[2];
pSphere1.translateX=$xf[0];
pSphere1.translateY=$xf[1];
pSphere1.translateZ=$xf[2];
which is also not that complex , and is connected to an attribute or in this case multiple attrs, will not evaluate untill the time have changed , (scrubing).
MY Question: How do I make my expression nodes evaluate realtime, regardless of their content.
something a bit more stable than scriptJob.
Thank You
