I made small addon for Blender 2.83+ (2.83.0 - 4.2.0).
You can easily generate random vertex colors for connected meshes of object.
The grayscale color palette is also supported.
Optionally you can control by selection which part of model will be colored.
Usage:
fast controlled random coloring of model parts
simple generation of ID masks
creating random vertex colors for modifiers
creating random vertex colors for simulations
creating random vertex colors for particle generators
creating random vertex colors exported for other apps
The addon is free and if you like it, you can support me and my future projects at Gumroad
Is there a way to apply Random Vertex Color according to Material Assignment?
Say instead of random colors for each object in a mesh, instead you have one mesh with many materials already assigned. Is there to use that grouping to derive the random vertex colors?
This is practically not possible because the materials are assigned to the faces and the vertex colors to the vertices. If you split the edges, you can almost achieve this, but there may be some problems with the normals. If you want to use this add-on, it is best to split the mesh.
(Edited in 2024)
My answer was wrong. It’s possible, but the add-on doesn’t have that feature now.
Hey Konstantinos,
Vertex Colors API is deprecated, but it still works fine in current Blender versions. However, I’ve modified the Set Connected Vertex Colors add-on to support this new data structure introduced in Blender 3.2 with maintaining backwards compatibility with older Blender versions.
For better performance, I recommend using the Vertex Domain Color Attributes that the add-on creates by default if there is no active color attribute. Be aware that Blender’s Vertex Paint mode creates a Face Corner Color Attribute by default.
I’ve also added support for the new Extensions system, which is necessary for the latest version of Blender 4.2.
This new add-on version 1.1.0 is now available on my Gumroad for free.