I'm working on a little script to change the color by hue, saturation and value (HSV) .
So I have 3 sliders to set the values which will be converted to the RGB values to set the color in the color menu in Zbrush.
I'm pretty sure I did everything exactly as in the the reference scripts.
The problem is, the saturation doesn't seem to work at all and the hue only chenges in steps...kind of
What is the problem here :S ?
Script is attached: ps_hsv3.txt
Your values were not been calculated correctly because the correct order of operations wasn't being followed. Inclusion of some extra brackets to force the order corrected the problem.
Thank you both... I've been looking for a script like this to move into another application. In my opinion, it's a more logical way to design color than the ever-present and non-intuitive R, G, B sliders.
Is there another version which takes R, G, B into H, S, V? (oops, never mind, I found your original link and I'll take a shot at rewriting R,G,B to H,S,V myself.)
Last edited by Svengali; 12-19-11 at 06:31 AM.