Select Mesh face by texture colour

Hi all,

Probably a strange request, but I’m hoping someone can at least get me pointed in the right direction.

I have an object, in this case I’ve built an 888 mesh cube, on which I’ve mapped a texture, which also is 888 in terms of its colour layout. The colours sit exactly over various faces of the cube.

What I’d like to know, is whether it is possible to select all the faces of a mesh, based on the colour applied to them via their applied texture?

In blender for example, I know that it’s possible to select faces of objects based on their mapped material ID, so I’m looking for something similar in Rhino

I’m open to all possibilites of grasshopper definitions, writing a plugin or if its extremely simple and there is a command that I don’t know about and can’t see when looking in either mesh or selection tools. Also, if this is possible with other types of geometry (polysurface or SubD for example) i’d love to hear about it.

Any and all advice would be greatly appreciated.

Thanks a lot.