I remember I saw it somewhere… but I can’t find it anymore. It was intended to copy the vertex groups from a rigged model to a copy of it still without vertex groups. Very useful if you use the “Fixfromarmature” script to edit meshes deformation (this script doesn’t preserve the vertex groups in the duplicated-deformed mesh).
So, if someone knows where to find it, thanks a lot.
Jms, no, really, I used it on a not subsurfaced mesh and it keeps the vertex groups names only in the selection popup, but no vertices to select in the mesh.
Toloban, thanks for the link, I’ll try it. But isn’t this the same version that came with every Blender script package?
No, it is different. On another thread someone posted a modified version and Theeth himself was the one to mention about the cvs script, so his is the official script.
Look at these lines:
# If SubSurf is off on the original, copy the vertex weight
if not ob_mesh.getMode() & Blender.NMesh.Modes['SUBSURF']:
for vgroupname in ob_mesh.getVertGroupNames():
vlist = ob_mesh.getVertsFromGroup(vgroupname, True)
new_ob_mesh.addVertGroup(vgroupname)
for vpair in vlist:
new_ob_mesh.assignVertsToGroup(vgroupname, [vpair[0]], vpair[1], 'add')