You do it with a multi-sub Tex, and set the right property (f.e. objectID, faceID, and so on).
Then the same material goes on every node, and takes on the color/texture proper for the ID found on the node. (see attached)
Another mini question (Already researched and tried but can’t find solution about that-only able to see in elements), how to see object id color in viewport regarding to vray multi-sub Tex info? @_Lele
There isn’t an obvious one, Max doesn’t support it.
It could possibly be scripted, but not elegantly (it’d have to run each time an ID changes, and it’d likely change wirecolors to nodes as IDs and Nodes are added/removed.).
Your best way out of this is to set up a multiSubTex, assign the IDs to nodes, and the shader as override (maybe use the texture for the color of a lightMtl).
Then use IPR viewport.