Selecting NON-RGB colors in a Color ID mask for material blending

I’ve made this material function that works fine for me

Hope this help, if someone need more info fell free to ask!

Ronchi
www.chricchio.com