print bone names attached to selected verts

What I’d like to do is to be able to select vert(s) of a mesh either in weight paint mode or edit mode then have a script print the names of the bones that are influencing those verts. Even better would be if the script could highlight the bones that are influencing the mesh.

I can do the same thing manually either in weight paint mode, by selecting each bone one at a time, and seeing if the mesh turns color from blue, or in edit mode, going to the vertex groups panel and deselect all the verts, select a vert group, press select, etc,etc.

The idea is to quickly find areas of the mesh that are influenced by more than one bone.

Mike

Should be pretty straight forward (i think)…
You need to know the mesh you are targeting…

GetSelected() should give you the verticies in edit mode (this is the part I haven’t actually done) but then nmesh.getVertexInfluences(v.index) will get you a list of lists…
[ [bone1Name weight1] [bone2name weight2] …]
that will get you the list of names and you’re off…

I was just turning in, but hopefully that will get you going…