-
-
Save fereria/01c469f610e6adad3116 to your computer and use it in GitHub Desktop.
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
#選択しているノードのうち、KeyableなものをLock・Hideする | |
import pymel.core as pm | |
def LockAndHideNodeAttr(node): | |
attrList = node.listAttr(k=True) | |
for attr in attrList: | |
attr.set(l=True,k=False) | |
def LockAndHideNodeAttrSelection(): | |
select = pm.ls(sl=True,fl=True) | |
for sel in select: | |
LockAndHideNodeAttr(sel) | |
LockAndHideNodeAttrSelection() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment