_
//I am working on this code and the part that has //?? flanking it is giving me a error message that says syntax error any tips
//both arms
//Greasylemur production
//
string $jnames[]={"left_arm_root","left_shoulder","left_elbow","left_wrist","left_hand",
"right_arm_root","right_shoulder","right_elbow","right_wrist","right_hand"};
int $num_of_sets_of_arms = 1;
int $jnum = 0;
int $numofset =1;
int $sjcount=0;
int $parcount=0;
for ($x=0;$x < $num_of_sets_of_arms;$x++){
select -d;
joint -p 2.0 3.0 0.0 ;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
joint -p 5.0 1.0 0.0 ;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
joint -p 6.0 -3.0 0.0 ;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
joint -p 4.0 -6.0 0.0 ;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
joint -p 3.0 -8.0 0 ;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
//??
parent -w
|$sjnames[($parcount-4)]|$sjnames[($parcount-3)]|$sjnames[($parcount-2)]|$sjnames[($parcount-1)]|$sjnames[$parcount];
parent ($numofset + ($jnames[4]))|($numofset + ($jnames[0]))|($numofset + ($jnames[1]))|($numofset + ($jnames[2]))|($numofset + ($jnames[3]));
//??
select -d;
joint -p -2.0 3.0 0.0 ;
joint -p -5.0 1.0 0.0 ;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
joint -p -6.0 -3.0 0.0 ;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
joint -p -4.0 -6.0 0.0 ;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
joint -e -zso -oj xyz -sao yup -n ($numofset + $jnames[$jnum]);
$sjname[$sjcount]=($numofset + $jnames[$jnum]);
$sjcount++;
$jnum++;
//??
parent -w
|$sjnames[($parcount-4)]|$sjnames[($parcount-3)]|$sjnames[($parcount-2)]|$sjnames[($parcount-1)]|$sjnames[$parcount];
parent $sjnames[($parcount)]|$sjnames[($parcount-4)]|$sjnames[($parcount-3)]|$sjnames[($parcount-2)]|$sjnames[$parcount-1];
//??
$jnum++;
$numofset;
}
//this is just for reference
/*
//elderly
//left arm
//this is what the code above is durived from
//I made them both
select -d;
joint -p -2.0 3.0 0.0 ;
joint -p -5.0 1.0 0.0 ;
joint -e -zso -oj xyz -sao yup joint1;
joint -p -6.0 -3.0 0.0 ;
joint -e -zso -oj xyz -sao yup joint2;
joint -p -4.0 -6.0 0.0 ;
joint -e -zso -oj xyz -sao yup joint3;
joint -p -3.0 -8.0 0 ;
joint -e -zso -oj xyz -sao yup joint4;
parent -w |joint1|joint2|joint3|joint4|joint5 ;
parent joint5 |joint1|joint2|joint3|joint4 ;
//right arm
select -d;
joint -p 2.0 3.0 0.0 ;
joint -p 5.0 1.0 0.0 ;
joint -e -zso -oj xyz -sao yup joint6;
joint -p 6.0 -3.0 0.0 ;
joint -e -zso -oj xyz -sao yup joint7;
joint -p 4.0 -6.0 0.0 ;
joint -e -zso -oj xyz -sao yup joint8;
joint -p 3.0 -8.0 0 ;
joint -e -zso -oj xyz -sao yup joint9;
parent -w |joint6|joint7|joint8|joint9|joint10 ;
parent joint10 |joint6|joint7|joint8|joint9 ;
*/