Created
August 24, 2017 21:56
-
-
Save SEVEZ/62774ac8c003f11affb2c70e8be608f1 to your computer and use it in GitHub Desktop.
Toggles double sided faces on/off.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//toggles double sided faces on/off. | |
string $selected[] = `ls -sl -dag -type mesh`; | |
if (`size $selected` != 0) | |
{ | |
string $obj; | |
for ($obj in $selected) | |
{ | |
if (`getAttr ($obj+".doubleSided")` == 1) | |
{ | |
setAttr ($obj + ".doubleSided") 0; | |
} | |
else | |
{ | |
setAttr ($obj + ".doubleSided") 1; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment