I see what you are saying now. Yeah, I think you need to manually put each material on the same ID color. Also try to render out ObjectID - this might give you a channel of that proxy.