Dear Adam,
After some wrestling with the ColorMask script, I came to understand that the script uses the "h" value in in CIE L*c*h* read out mode, not the "H" value in HSI or HSV mode. I'm not an expert in color spaces so I believed H and h values would be the same but discovered the hard way that they weren't.
When I press the Red button, the script selects magenta and blue....when I press the Blue button, it selects red, yellow and green.
However, when I enter the h value, it selects that color precisely.
"ColorMask selects colours based on hue values. If you're having problems selecting specific areas it's worth checking the values in those areas with the readout cursor. Go to the Edit>Readout Options dialog then choose CIE L*c*h* for the Data / Color Space and enable Show Readout Preview. Then click around the areas of interest and note the range of h values you see. Make sure the range you select in ColorMask includes these values."
In this case, the preset color buttons are useless and misleading, aren't they ?
I will appreciate your input on this...
Best wishes
Sedat
Comments
Picking up on this old thread where the hue values don't seem to correspond to what's expected in the ColorMask script, I modified the script to globally replace the function CIEh() to H() so that the script is using the H rather than the h color space for the internal workings. As the H space has a more even color wheel, and also the color buttons now correspond to what was intended this seems like a useful modification - what do you think?
Gordon