I want to store different colors per vertex group in an attribute map.
All assigned verts in vertex group1 = green
All assigned verts in vertex group2 = blue.
On my test cube all top vertices are selected and in a vertex group called selection and should be colored green.
Best I could come up with is with a separate geometry node,but this makes me lose the edges between top and bottom of the cube.
And also is limited to selection and inverted selection instead of multiple vertex groups.
What's the best approach here?