Skip to content

Instantly share code, notes, and snippets.

@fereria
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/79972e3bb8e8775d4635 to your computer and use it in GitHub Desktop.
Save fereria/79972e3bb8e8775d4635 to your computer and use it in GitHub Desktop.
選択しているノードの子ノードすべてを表示する。LockがあったらUnLock
import pymel.core as pm
selectNode = pm.ls(sl=True)
for sel in selectNode:
vis = sel.listRelatives(ad=True)
for j in vis:
j.v.set(l=False,k=True)
#0にすると全部Hide
j.v.set(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment