I am creating a node group that I would like to be able to make 6- 8 individual colors available for the material. While it would be ideal, I am aware that color ramps cannot be used from outside of a node group. As an alternative, I have tried chaining mixRGB nodes with the intent of separating the colors individualy. The problem I am having is that chaining mix rgb nodes seems to be unpredictable at times as to how exactly colors will mix/ separate.
The following image is to better illustrate my difficulty. The material settings in node shown are for the object displayed. The resulting mix is nothing like what is selected from the group. It seems that colors are ignored rather than combined or separated, and I don't know how to control this. I ultimately want to control a color per node in the 'math' node group within the material, which I think I can work out once I get this part sorted.
I have seen and tried working with this answer, but wasn't able to work with it when combining multiples of these groups together. I am also having a similar problem with the proposed answer. (Separating colors predictably)
Thus far, I have the material somewhat working but the colors blend somewhat unpredictably and seem to be a bit unreliable in how the material is affected. I haven't been able to find a good way to approach the problem. Below are the current node setups for the approaches I have been using.
This is my current node setup for my approach using mix rgb nodes:
What I would like to achieve, I have come close to using color ramps, but the problem there is that in order to make a change to color, I have to open the group, make the changes, and then continue.
This is the 'Math" node group within the material:
The general look I am after is as follows, the shader ball on the left is assigned the mix rgb setup, and the one on the right,which would be closer to the look I'd like the material to have is the color ramp setup:
Is what I am trying to do possible? If so, what is the correct way of doing this?