Highlight similar vertices by vertex color

Hi,
I have a mesh object with specific data information displayed by various vertex colors. In my case, each color value represents a specific time point from red (earliest) to purple (latest).

Now, I would like to make an animation in a way that all vertices with the same color data light up at the same time.

And finally I would like to automate the process in a python script, if possible.

At the moment I’m not really sure how to solve this problem. Hope anyone can help

maybe something like this helps?

highlight colors

Thanks for your fast reply!
Yes, something like this :slight_smile: The highlighting looks great!

So basically there are three parts of the problem:

  1. Select all vertices with the same color
  2. Adjust the highlighting only to these vertices and at the same time if possible
  3. Store the highlighting as keyframe for animation
    → Repeat for the next color value

Finally I want to export the animation as *glb, but this should hopefully not be a problem

This is an example of how the object looks