Beginner Python scripter here, upon running my operator Blender crashes, inspecting the crashlog just yields an EAV as described. The crash appears to happen at the
"facemaps[x-1].add(face)" line. I haven't been able to find much information about the new facemaps so have only been going off what I found on other similar properties.
I cannot use vertex groups as an alternative as during subdivisions they blend out into other vertices which is not ideal for my purposes.
def execute(self, context): obj = bpy.context.edit_object me = obj.data bmsh = bmesh.from_edit_mesh(me) verts =  facemaps =  face =  x = 1 for f in bmsh.faces: for v in f.verts: verts.append(v.co) face = f.index facemaps.append(obj.face_maps.new( name = str(x))) bpy.ops.object.editmode_toggle() facemaps[x-1].add(face) bpy.ops.object.editmode_toggle() x = x + 1