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.

easy controller creation script

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

  • easy controller creation script

    import maya.cmds as mc
    #get the first thing seleted in the scene
    SelectedJoints = mc.ls(sl = True)
    for eachJoint in SelectedJoints:
    #create a circle
    controller = mc.circle(n = eachJoint.replace("jt_", "ac_"))
    #group the circle
    controllerGrp = mc.group(controller, n = eachJoint.replace("jt_", "ac_") + "_grp")
    #match the circle to the joint
    mc.matchTransform(controllerGrp,eachJoint)
Working...
X