I need to find a way to remove vertex groups that got a dot on their names, I tried with this code but it didnt work (well, the find part works, but it is not removing the vertex group):
for vertexname in bpy.context.object.vertex_groups: if vertexname.name.find("\."): vertexname.remove(vertexname.index)
ValueError: VertexGroup.remove(): error with argument 1, "index" - sequence expected at dimension 1, not 'int'
I'm not very experienced with python either, i could make that code because of my knowledge with lua, not really sure what does a sequence is in python (i was expecting it to be a table with numbers, something like [0, 1, 5, etc] but even with "vertexname.remove()" nothing is being removed).