Script for turning bone visibility back on while using HIK

Posted by:

There is a bug in the HIK system and the result is that the skeleton visibility button fails to display the joints any longer. Here is a script that will turn them back on.  Note that it doesn’t fix the bug, it just allows you to see your joints again.

  1. import maya.cmds as cmds
  2. skeletonRoot = = True)
  3. skeletonList = cmds.listRelatives(skeletonRoot, allDescendents = True, type = 'joint')
  4. print(skeletonList)
  5. for eachJoint in skeletonList:
  6. cmds.setAttr(str(eachJoint) + '.drawStyle', 0)
  Related Posts
  • No related posts found.

You must be logged in to post a comment.