Thanks Justin. I have another related question. Is there a way I can grow the bodyParts list by doing this *bodyParts.extend(sl=True) *rather than *bodyParts.extend(leftEye)* In other words, tell it the current object should be added to the list rather than having to explicitly give it a name ? bodyParts=[]
#len(bodyParts) # left eye leftEye = mc.polySphere(name='leftEye#',ch=0) bodyParts.extend(leftEye) # left proboscis LProboscis = mc.polyCylinder(name='leftProboscis',ch=0) bodyParts.extend(LProboscis) # left wing A L_WingA = mc.polySphere(n='leftWingA',ch=0) bodyParts.extend(L_WingA) # left wing B L_WingB = mc.polySphere(n='leftWingB',ch=0) bodyParts.extend(L_WingB) # left wing C L_WingC = mc.polySphere(n='leftWingC',ch=0) bodyParts.extend(L_WingC) # Put it all in a group insectGroup = mc.group(empty=True, name='Group_Insect_#') mc.parent(bodyParts,insectGroup) > >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c6d164cd-0bf2-4e50-ab48-815e64014bf8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
