No tags yet.
Hi. I posted earlier a request for help reReseting the translation values on buildings that have their valuer frozen. ANd thnkr was generous enough to help with that:
Heres the script that worked for translation
$sel = ls -sl;
for ($tmp in $sel) {
// center pivot
xform -cp $tmp;
// get translate from new pivot
float $pivot[] = getAttr ($tmp + ".rotatePivot");
//move to origin
move -r (-1* $pivot[0]) (-1 * $pivot[1]) (-1 * $pivot[2]) $tmp ;
// freeze transforms
makeIdentity -apply true -t 1 -r 1 -s 1 -n 0 $tmp;
//reset transforms
makeIdentity -apply false -t 1 -r 1 -s 1 $tmp;
//move object back to newly found pivot;
move -r $pivot[0] $pivot[1] $pivot[2] $tmp;
}
It turns out i need to reReset/Unfreze the rotation values aswell...
Please help if you can.
You must log in to post.