Current very slow method (code reduced):
obj = bpy.context.active_object vgroups = obj.vertex_groups.new(name="test_layer") for loop in obj.data.loops: vindex = obj.data.loops[loop.index].vertex_index vgroups.add([vindex], value, "REPLACE")
Performance is tested on 1024 x 1024 grid and takes minutes to complete for several weight layers.
My goal is not to assign the same weight value, but different values for each vertex.
I believe I am looking for something like below, which does not exist.