Announcement

Collapse
No announcement yet.

create controller script

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

  • create controller script

    https://studentuiwtx-my.sharepoint.c...-I0Lw?e=3PREQm

  • #2
    import maya.cmds as mc
    selection = mc.ls(sl=True)
    for itemJnt in selection:
    controllerName = "ac_" + itemJnt.replace("jt_", "").replace("_bind", "")
    myController = mc.circle(nrx = 1, nrz = 0, n=controllerName,r=7)
    ControllerGrp = mc.group(controllerName, n = controllerName + "_grp")
    mc.matchTransform(ControllerGrp, itemJnt)
    mc.orientConstraint(controllerName, itemJnt)
    Last edited by Professor Li; January 28th, 2020, 14:15.

    Comment

    Working...
    X