Instantly share code, notes, and snippets.

@fereria /selectShowAll.py Secret
Last active Aug 29, 2015

Embed
What would you like to do?
選択しているノードの子ノードすべてを表示する。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