Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Turn off Carbon Physics Draw for Carbon Rigid "Moments of Inertia" 2 months 17 hours ago #600

  • admin
  • admin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 157
  • Thank you received: 20
Maya python script to turn off Carbon Physics Draw for Carbon Rigids "Moments of Inertia" in selected hierarchy.

import maya.cmds as cmds
selection = cmds.ls(sl=True)
cmds.select(selection, hierarchy=True)
selectedHierarchy = cmds.ls(sl=True)
nodes = cmds.ls(sl=True, type='CarbonRigid')
for node in nodes:
    cmds.setAttr(node + '.drawMode', 0)

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.046 seconds