jgibz
05-23-2006, 05:09 AM
Hi everyone,
I'm writing a script that creates a biped rig. In the section responsible for setting up the arms there appears to be a bug...
The script is designed to setup the ik handles on the arms from the shoulder to the first forearm joint(the script works on arm chains with 3 forearm joints). This way the effector can be moved to the wrist, allowing the animator to rotate the forarm joints.
here's the code...
float $wristPosition[] = `xform -q -ws -rp $wrist`;
string $handleResults[] = `ikHandle`;
select $handleResults[1];
move $wristPosition[0] $wristPosition[1] $wristPosition[2] ($handleResults[1] + ".scalePivot")
Does this look like it will cause problems?
The reason I think it's a bug is because sometimes the script places the effector in the right place. But most times it's wrong, placing the effector on the first forearm joint, bending back the ik chain. (this is a 3 chain ik/fk arm setup).
here are a couple of pics to illustrate what I'm talking about...
http://www.unm.edu/~jgibz/desired.jpg
http://www.unm.edu/~jgibz/problem.jpg
Anyways, if this isnt enough information, here's the file where this exists.
http://www.unm.edu/~jgibz/jgFinishRigArm.mel
Thanks for any help
-j
I'm writing a script that creates a biped rig. In the section responsible for setting up the arms there appears to be a bug...
The script is designed to setup the ik handles on the arms from the shoulder to the first forearm joint(the script works on arm chains with 3 forearm joints). This way the effector can be moved to the wrist, allowing the animator to rotate the forarm joints.
here's the code...
float $wristPosition[] = `xform -q -ws -rp $wrist`;
string $handleResults[] = `ikHandle`;
select $handleResults[1];
move $wristPosition[0] $wristPosition[1] $wristPosition[2] ($handleResults[1] + ".scalePivot")
Does this look like it will cause problems?
The reason I think it's a bug is because sometimes the script places the effector in the right place. But most times it's wrong, placing the effector on the first forearm joint, bending back the ik chain. (this is a 3 chain ik/fk arm setup).
here are a couple of pics to illustrate what I'm talking about...
http://www.unm.edu/~jgibz/desired.jpg
http://www.unm.edu/~jgibz/problem.jpg
Anyways, if this isnt enough information, here's the file where this exists.
http://www.unm.edu/~jgibz/jgFinishRigArm.mel
Thanks for any help
-j
