FlippedNormal
06-24-2008, 09:47 AM
How do I create an ik spline without moving the joints a bit?
I’ve tried making the curve with the cv point exactly on the joints and then specifying ikhandle to use it but that also didn’t help. is there some magical combination of flags I should be using?
This will kind of illustrate the problem I’m having. The movement is slight when the ikHandle is mad but its enough to give a character a strange posture.
Ok I know this wont be a problem if i bind the mesh after the rig is created. but still would like to know if it is possible.
//--------------------------------------------------------------
//create joints
joint -p 0 39.740646 3.09137 -n hip ;
joint -p 0 46.267101 2.523852 -n spine1 ;
joint -e -zso -oj xyz -sao yup hip;
joint -p 0 51.374762 0.707795 -n spine2;
joint -e -zso -oj xyz -sao yup spine1;
joint -p 0 57.106692 0.764547 -n spine3 ;
joint -e -zso -oj xyz -sao yup spine2;
joint -p 0 60.284792 2.183342 -n neck;
joint -e -zso -oj xyz -sao yup spine3;
//create curve
float $hip[] = `xform -q -ws -rp hip` ;
float $spine1[] = `xform -q -ws -rp spine1` ;
float $spine2[] = `xform -q -ws -rp spine2` ;
float $spine3[] = `xform -q -ws -rp spine3` ;
float $neck[] = `xform -q -ws -rp neck` ;
curve -p $hip[0] $hip[1] $hip[2]
-p $spine1[0] $spine1[1] $spine1[2]
-p $spine2[0] $spine2[1] $spine2[2]
-p $spine3[0] $spine3[1] $spine3[2]
-p $neck[0] $neck[1] $neck[2] -n spineCurve;
//create ik
ikHandle -n spineIK -c spineCurve -fj 1 -sol ikSplineSolver -sj hip -ee neck;
I’ve tried making the curve with the cv point exactly on the joints and then specifying ikhandle to use it but that also didn’t help. is there some magical combination of flags I should be using?
This will kind of illustrate the problem I’m having. The movement is slight when the ikHandle is mad but its enough to give a character a strange posture.
Ok I know this wont be a problem if i bind the mesh after the rig is created. but still would like to know if it is possible.
//--------------------------------------------------------------
//create joints
joint -p 0 39.740646 3.09137 -n hip ;
joint -p 0 46.267101 2.523852 -n spine1 ;
joint -e -zso -oj xyz -sao yup hip;
joint -p 0 51.374762 0.707795 -n spine2;
joint -e -zso -oj xyz -sao yup spine1;
joint -p 0 57.106692 0.764547 -n spine3 ;
joint -e -zso -oj xyz -sao yup spine2;
joint -p 0 60.284792 2.183342 -n neck;
joint -e -zso -oj xyz -sao yup spine3;
//create curve
float $hip[] = `xform -q -ws -rp hip` ;
float $spine1[] = `xform -q -ws -rp spine1` ;
float $spine2[] = `xform -q -ws -rp spine2` ;
float $spine3[] = `xform -q -ws -rp spine3` ;
float $neck[] = `xform -q -ws -rp neck` ;
curve -p $hip[0] $hip[1] $hip[2]
-p $spine1[0] $spine1[1] $spine1[2]
-p $spine2[0] $spine2[1] $spine2[2]
-p $spine3[0] $spine3[1] $spine3[2]
-p $neck[0] $neck[1] $neck[2] -n spineCurve;
//create ik
ikHandle -n spineIK -c spineCurve -fj 1 -sol ikSplineSolver -sj hip -ee neck;
