script: "flip Z" Ignavus: script: "flip Z"

Tuesday, February 10, 2009

script: "flip Z"

Because you can never have too many hotkeys in Maya, here's my latest

description: Flip selected object in Z.

proc flip()
{
string $sel[] = `ls -sl`;
float $xVal = `getAttr ($sel[0] + ".scaleZ")`;
$xVal *= -1;
setAttr ($sel[0] + ".scaleZ") $xVal;
print $xVal;

}
flip();


just chance the attribute "scaleZ" to X and Y

No comments: