On 19/09/2014 11:20 AM, <[email protected]> wrote: > > I suppose I've been put on ignore for mentioning xsi (i'm sorry, i'm sorry ;) ) >
You haven't been put on ignore for any reason. I just think it's a matter of the the right person not yet having responded with an answer. > but if anyone is listening, I've taken a step back, and decided to work on the simpler bits for now. avoiding the islands for now, and just focusing on what I want from the components passed in. > > Things would be much easier for me I think if my selection list remained objects, and not strings after converting the list to verts using pm.polyListComponentConversion(). is there a better way? > > sorry for a silly question, but how could I get the objects instead or after? so that I can get the position, and normal, etc, etc. > > =========== > > def getComponentIslands( components ): > ''' > do fancy stuff here to return component islands > ''' > return componentIslands > > > def convertToVerts( components ): > return pm.polyListComponentConversion( components, toVertex=True ) > > > def getAvgVertTfm( components ): > > avgTfm = pm.datatypes.TransformationMatrix() > verts = convertToVerts(components) > for vert in verts: > ''' > do all the fancy math stuff here > ''' > pass > > return avgTfm > > ============= > > Thanks > Kev > > -- > 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/6507d05d-8aba-4085-8637-6faf20a92f56%40googlegroups.com . > For more options, visit https://groups.google.com/d/optout. -- 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/CAPGFgA3hPSRf-HdjrZyWz3gq-5nPGMV7VgajJ-WyZ%3DXqX5XPDw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
