Split RGB channels in shader?

Is there any way to split a bitmap by RGB channels via shader in vray? Similar to how in unreal engine you can split the channels of a bitmap. Or if there’s any OSL around that can do this?

You can do this using the color correction node and setting each channel color to the same channel you want to isolate. You can also do this with the RGB Tint node setting the channel you want to isolate’s color to white and the other two channels to black.

Tim

Or an output node in which you turn down the curves of the unwanted channels.

Those 3 techniques work so far, RGB Tint seems to be the most straightforward!

This question comes from my texture artist, he’s asking if it’s possible to have a “clown” map / hue shift from substance painter, and for each different color, assign different shader properties to it. For example, 6 different colors in that map (for 6 different shaders), and the possibility to “key” each color via a 2d node, so it can be connected to a master vrayblend material to split the several shaders.