三維建模出了愛

Maya Tips: Auto move to the Center and reset Pivot

In General, as we want to move an object to the center, we must be move on our own and align it. Now introducing a tip: Using Maya Mel to auto re-set!


Using the following Mei script in your script editor:

string $obj[]=`ls-sl`;
for($aObj in $obj)
{
xform -cp $aObj;
move -rpr 0 0 0 $aObj;
}

Then…


能者勞而智者憂,無能者無所求;蔬食而遨遊,泛若不系之舟。
The skillful man’s work and the wise man worry, the incapable person does not seek, the full food and roam, the pan if not the boat.

Zhuangzi

So…This little tip as a kickstart.

發表迴響