The goal is to separate some faces from a mesh according to the vertex groups.
First of all the operation should apply to a bunch of faces. So when i have nothing selected and apply the code for the selection, i can see that the faces are selected but they are kind of greyed out, so when the code tries to apply the bpy.ops.mesh.separate() it spawns that nothing is selected…
Now when i am toggling the edit mode, i see the selection updated…
Am i missing something? Is there any other way to select the faces?
Currently i am using bmesh:
and assuming that i have all the vertices of the vertex group in a list verts_0=
i do it like:
for f in bm.faces:
for v in f.verts:
if v in verts_0: