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
proc flip()
{
string $sel[] = `ls -sl`;
float $xVal = `getAttr ($sel[0] + ".scaleZ")`;
$xVal *= -1;
setAttr ($sel[0] + ".scaleZ") $xVal;
print $xVal;
}
flip();
No comments:
Post a Comment