.VertexColors.Add(255,0,0)
When I add the mesh makes my box red
but if I got to modify them
myMeshes[0].VertexColors.SetColor(0, 0, 0, 0)
myMeshes[0].VertexColors.SetColor(1, 0, 0, 0)
myMeshes[0].VertexColors.SetColor(2, 0, 0, 0)
myMeshes[0].VertexColors.SetColor(3, 0, 0, 0)
myMeshes[0].VertexColors.SetColor(4, 0, 0, 0)
myMeshes[0].VertexColors.SetColor(5, 0, 0, 0)
myMeshes[0].VertexColors.SetColor(6, 0, 0, 0)
myMeshes[0].VertexColors.SetColor(7, 0, 0, 0)
to black it stays red even if I have a myMeshObj.CommitChanges() do I have to commit the changes to the mesh itself somehow?
I am forcing the doc to redraw, but is there something else that is needed then?
I’m not sure, if it’s a bug, but it seems to me to be.
I can change color of specified vertices of the mesh by rs.MeshVertexColors(mesh_id, colors).
But when I use rs.MeshVertexColors(mesh_id, None) it doesn’t remove the color from the mesh as intended.
Also when I use only the mesh.VertexColors.Clear() command, it doesn’t change anything.