Skip to content

Instantly share code, notes, and snippets.

@AndrewtConroy
Created October 29, 2014 20:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewtConroy/60d7327d945e65cc624d to your computer and use it in GitHub Desktop.
Save AndrewtConroy/60d7327d945e65cc624d to your computer and use it in GitHub Desktop.
simple joint utilities
def jointLock():
allJoints = cmds.ls(type='joint')
for joint in allJoints:
cmds.setAttr(joint+'.radius',.01)
cmds.setAttr(joint+'.radius',lock=1,keyable=1,channelBox=0)
def jointUnlock():
allJoints = cmds.ls(type='joint')
for joint in allJoints:
cmds.setAttr(joint+'.radius',lock=0,keyable=1,channelBox=1)
cmds.setAttr(joint+'.radius',1)
def sceneLock():
cmds.select(all=1,hi=1)
cmds.lockNode()
def sceneUnlock():
cmds.select(all=1,hi=1)
cmds.lockNode(lock=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment