Friday, January 12, 2007

Align Script, for easy aligning object during the rigging proces, with some little change you can align what you want, pivot,rotation only,move only ecc..

Just copy and create a new shelf button..

///////////////////////////////////////////////////////////////////////
//www.Alfonsosicilia.com Align objects script//
//Copy all and create a shelf button
//Select first object,then the second you want the first to
// be aligned to then Align!//

string $select[] = `ls -sl`;

float $pickRot[] = `xform -q -ws -ro $select[1]`;
float $pickPos[] = `xform -q -ws -t $select[1]`;

xform -ws -ro $pickRot[0] $pickRot[1] $pickRot[2] -t $pickPos[0] $pickPos[1] $pickPos[2] $select[0];

///////////////////////////////////////////////////////////////////////

1 comment:

Anonymous said...

Good words.