Skip to content

Instantly share code, notes, and snippets.

@fereria
Created February 24, 2014 14:14
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/01c469f610e6adad3116 to your computer and use it in GitHub Desktop.
Save fereria/01c469f610e6adad3116 to your computer and use it in GitHub Desktop.
#選択しているノードのうち、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