I'm generating a mesh from a list of locations and normals, for each vector a create a simple triangle. What I would like to do is to edit the weight of each triangle into a vertex group. I manage to do it in edit mode (painting) but when I get back to object mode, as its being generated procedurally, all weigths reset to 0.
I've checked some answers where they loop throught the weights but I want to stablish them. here is how it looks now:
It would be great also if I could choose between feed those weights from a list or paint the manually.