Skip to content

Instantly share code, notes, and snippets.

@csaez
Last active December 21, 2015 04:09
Show Gist options
  • Save csaez/6247388 to your computer and use it in GitHub Desktop.
Save csaez/6247388 to your computer and use it in GitHub Desktop.
Maya trick to hide shape nodes and bypass hierarchy visibility inherance.
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