Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.