Help... how to assign random colors to the same mesh object with separate parts

Hello!
okay i have been working on a project for a while, the mesh consists of separated objects(lets call them parts) and im trying to give each part a different random color from a color ramp because each part path color has a purpose. Separating the mesh into different single meshes is not an option, my pc cant handle the pressure and then the program crashes not to mention it becomes extremely difficult to control the scene. Also particles is not an option.
I would really appreciate any help and thanks in advance!!
here’s some images on what im trying to do…

to

Depends on your setup - you can use the Geometry, Curve Info, or Object Info node’s Random inputs in many circumstances (In the Shader Editor) - For generated geometry you can use GN:

Hope that helps.

4 Likes

Thank you very much that was actually vey helpful!! and indeed it was the solution… turned out the same way i wanted it to be.

2 Likes

Tried this. Didn’t work for me. Simple object. Here’s my blend file:

rnd_colors_BA__blend.blend (1.2 MB)

You don’t need the White Noise it works without it, but using it gives you a seed value or animation with keyframes when adjusting the W value in 4D…