Skip to content

Instantly share code, notes, and snippets.

@AndrewtConroy
Created February 27, 2020 15:51
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 AndrewtConroy/38b1a770b0dac759b3de17eb6152abc8 to your computer and use it in GitHub Desktop.
Save AndrewtConroy/38b1a770b0dac759b3de17eb6152abc8 to your computer and use it in GitHub Desktop.
Show Joints
import maya.cmds as cmds
jnts = cmds.ls(type="joint")
show = 1
if show:
display = 0
else:
display = 2
for j in jnts:
cmds.setAttr("%s.drawStyle" % j, display)
allJoints = cmds.ls(type='joint')
for joint in allJoints:
cmds.setAttr(joint + '.overrideDisplayType', 0)
cmds.setAttr(joint + '.radius', 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment