Welcome!

Welcome to our community forums, full of great people, ideas and excitement. Please register if you would like to take part.

This is extra text with a test link..

Register Now

Announcement

Collapse
No announcement yet.

rigging weighted file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • rigging weighted file



    import maya.cmds as mc
    selection = mc.ls(sl=True)
    controllerName = selection[0].replace("jt_", "ac_").replace("_bind", "")
    myController = mc.circle(n=controllerName)
    ControllerGrp = mc.group(controllerName, n = controllerName + "_grp")
    mc.matchTransform(ControllerGrp, selection[0])
    mc.orientConstraint(controllerName, selection[0])
    Last edited by Professor Li; September 11, 2018, 07:02.

  • #2
    import maya.cmds as mc
    selection = mc.ls(sl=True)
    for item in selection:
    controllerName = item.replace("jt_", "ac_").replace("_bind", "")
    myController = mc.circle(n=controllerName)
    ControllerOffsetGrp = mc.group(controllerName, n = controllerName + "_offset_grp")
    ControllerGrp = mc.group(ControllerOffsetGrp, n = controllerName + "_grp")
    mc.matchTransform(ControllerGrp, item)
    mc.orientConstraint(controllerName, item)

    Comment

    Working...
    X