Selecting vertices by vertex color
Mesh vertices don’t have a “color” property. Vertex colors specified by coloring in Vertex Paint mode or any other way are stored in an attribute – a separate list of values. To select a vertex by the color assigned to it in an attribute, we need to associate the attribute’s index with the vertex index.