character joint expression help!
sup sup fellous and thanx in advanced to all that reply and take the time to read this.
im animating a character, i grouped the pelvis joint to create a control, then i created an expression with the following code.
float $x = pelvis_control.tx;
float $y = pelvis_control.ty;
float $z = pelvis_control.tz;
float $a = pelvis_control.ry;
$x = (rfoot.tx + lfoot.tx)/2;
$y = (rfoot.ty + lfoot.ty)/2;
$z = (rfoot.tz + lfoot.tz)/2;
$a = (rfoot.ry+ lfoot.ry)/2;
all i wanted was for the pelvis to move half way between the left foot and right foot when moving the foot nodes. The expression was accepted, but it does nothing in my animation when i move the left or right foot, any suggestions?
ps: i know a little c++ but never tried code in maya.
thankx again
gino