Last active
December 21, 2015 04:09
-
-
Save csaez/6247388 to your computer and use it in GitHub Desktop.
Maya trick to hide shape nodes and bypass hierarchy visibility inherance.
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
import pymel.core as pm | |
def toogleVisibility(obj): | |
for s in obj.getShapes(): | |
s.overrideEnabled.set(True) | |
s.overrideVisibility.set(not s.overrideVisibility.get()) | |
for x in pm.ls(selection=True): | |
toogleVisibility(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment