Hi there, The problem is when the script working the loop with the same name object on selection of hierarchy. As you can see on the image attachment that the arm01_ctrl won't be parented to arm02CtrlOffset_grp. I think this is caused by *two *of arm02CtrlOffset_grp, and the curve of arm01_ctrl (belongs to arm02CtrlZro_grp1) woudn't identify the base (top) of parent name. Here is the groupParent function
def groupParent(groups, prefix, suffix): grps = [] for i in range(len(groups)): grps.append(mc.createNode('transform', n="%s%s%s_%s" % (prefix, suffix, groups[i], GROUP))) if i > 0: mc.parent(grps[i], grps[i-1]) return grps Thanks! -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2416e0a5-b6ec-485f-8129-629f93734896%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.