I can help you. when you say component islands you mean you have some polygon that has a bunch of separate poly islands. i.e., if you selected the geometry and did a separate command you'd have a bunch of individual pieces?
you want to discover those pieces without using the separate command. You want to make a set of data sets like a list of verts converted to faces based on a vert selection? is this correct? On Thu, Sep 18, 2014 at 4:27 PM, Justin Israel <[email protected]> wrote: > > 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 > <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3hPSRf-HdjrZyWz3gq-5nPGMV7VgajJ-WyZ%3DXqX5XPDw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > 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/CABPXW4gvLqz8aei5MFsM6%2BiJ8o-K1XzPyQXqsrMx3dq%2BgHb4pg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
