Software Community Services About Contact

Reply to topic Page 1 of 1
Create Skeleton
Author Message
Reply with quote
Post Create Skeleton 
Basic Create Skeleton with zero'd Joint Orient Values.

Code:
select -cl  ;
joint -p 0 55 0 -n Root;
joint -r -p -6 -2 0 -ax 180 -az -90 -n RightHip;
joint -r -p 23 0 0  -n RightKnee;
joint -r -p 23 0 0 -ay 45 -n RightAnkle;
joint -r -p 5  0 0 -ay 45 -n RightFoot;
joint -r -p 5  0 0  -n RightFootEnd;
select -r Root;
joint -r -p 6 -2 0 -ax 180 -az -90 -n LeftHip;
joint -r -p 23 0 0  -n LeftKnee;
joint -r -p 23 0 0 -ay 45 -n LeftAnkle;
joint -r -p 5  0 0 -ay 45 -n LeftFoot;
joint -r -p 5  0 0  -n LeftFootEnd;
select -r Root;
joint -r -p 0 0 0 -az 90 -n Spine1;
joint -r -p 7 0 0 -n Spine2;
joint -r -p 7 0 0 -n Spine3;
joint -r -p 7 0 0 -n Spine4;

joint -r -p 0 0 0 -az 60 -n LeftClav;
joint -r -p 8 0 0 -az 30 -n LeftShoulder;
joint -r -p 15 0 0 -n LeftElbow;
joint -r -p 15 0 0 -n LeftWrist;
joint -r -p 4 0 0 -n LeftHandEnd;

select -r Spine4;

joint -r -p 0 0 0 -ax 180 -az -60 -n RightClav;
joint -r -p 8 0 0 -az 30 -n RightShoulder;
joint -r -p 15 0 0 -n RightElbow;
joint -r -p 15 0 0 -n RightWrist;
joint -r -p 4 0 0 -n RightHandEnd;

select -r Spine4;

joint -r -p 7 0 0 -n Neck;
joint -r -p 10 0 0 -n Head;




View user's profile Send private message Send e-mail
Reply with quote
Post  
Here is an update

Code:

float $height = 180;
float $scale = 0.1;

float $mult = $height / 103 * $scale;
string $js[];
int $i=0;
select -cl  ;
$js[$i++] = `joint    -p   0         (55*$mult)  0  -n Root`;
string $roots[] = `ls -sl -l`;
string $root = $roots[0];

$js[$i] = $root + "|" + `joint -r -p   (-6*$mult) (-2*$mult) 0  -ax 180 -az -90 -n RightHip`;  $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (23*$mult) 0          0  -n RightKnee`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (23*$mult) 0          0  -ay 45 -n RightAnkle`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (5*$mult)  0          0  -ay 45 -n RightFoot`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (5*$mult)  0          0  -n RightFootEnd`; $i++;

select -r $root;
$js[$i] = $root + "|" + `joint -r -p   (6*$mult) (-2*$mult) 0  -ax 180 -az -90 -n LeftHip`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (23*$mult) 0         0  -n LeftKnee`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (23*$mult) 0         0  -ay 45 -n LeftAnkle`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (5*$mult)  0         0  -ay 45 -n LeftFoot`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (5*$mult)  0         0  -n LeftFootEnd`; $i++;

select -r $root;
$js[$i] = $root + "|" + `joint -r -p   0          0        0 -az 90 -n Spine1`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (7*$mult)  0        0 -n Spine2`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (7*$mult)  0        0 -n Spine3`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (7*$mult)  0        0 -n Spine4`;

string $topspine = $js[$i];
$i++;

$js[$i] = $topspine + "|" + `joint -r -p   0          0        0 -az 60 -n LeftClav`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (8*$mult)  0        0 -az 30 -n LeftShoulder`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (15*$mult) 0        0 -n LeftElbow`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (15*$mult) 0        0 -n LeftWrist`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p   (4*$mult)  0        0 -n LeftHandEnd`; $i++;

select -r $topspine;

$js[$i] = $topspine + "|" + `joint -r -p 0          0        0 -ax 180 -az -60 -n RightClav`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p (8*$mult)  0        0 -az 30 -n RightShoulder`;$i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p (15*$mult) 0        0 -n RightElbow`;$i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p (15*$mult) 0        0 -n RightWrist`;$i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p (4*$mult)  0        0 -n RightHandEnd`;$i++;

select -r $topspine;

$js[$i] = $topspine + "|" + `joint -r -p (7*$mult)  0 0 -n Neck`; $i++;
$js[$i] = $js[$i-1] + "|" + `joint -r -p (10*$mult) 0 0 -n Head`; $i++;

for($n=0; $n<$i; $n++)
   setAttr ($js[$n] + ".radius") 0.5;


View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


RegisterSearchFAQMemberlistUsergroupsLog in