okay, now we're getting somewhere ;) I feel so useless, but this is really helping me understand dictionaries. I was figuring those loops could be reduced.
I'll admit I'm kinda lost now in the code. It seems that "vtxKey" is returning a vertex, and not the dictionary key. What i'll need to do is if that vtx does exist in the list of vertices that are my values in the keys of connectedVertGroups. append the vtx to the the same dictionary key, value list in vertGroups. in the end, the keys for vertGroups, will contain all the vertices in my selection that are connected to eachother. i.e If I select verts 1,2,3,4,5,50,51,52,53,54 vertGroups will have two keys. the first key's value would be [1,2,3,4,5] and the second key's value woud be [50,51,52,53,54] -- 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/d20b887b-1e66-428c-8d15-479b845abc7f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
