Hi jack, thx for helping me.

I think this works for me:

vtxKey = next((key for key, value in connectedVertGroups.iteritems() if value 
== vtx), None)

The only problem I'm having is that my dictionary values are a list of 
vertices, and I need to check for a vertex within those lists.

Do you have any suggestions for getting passed that?  I was able to use 
chain(*) when checking the dictionary values directly, but it doesn't seem to 
work when I'm using dict.iteritems().  chain(*dict.iteritems()) or 
chain(*dict.items()) - too many items to unpack.

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/7246e089-a231-4297-9e81-27e676b1dfb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to