Hello I`m stuck with setting correct color to nodes. I would like to set value with HSV. I want to do slight automatic gradient when I creating nodes in network box
this one work in RGB:
my_list = [nullA, nullB, nullC, nullD]
loop = 0
nodePos = -1
for node in my_list:
node.setColor(hou.Color(0.3, 0.5 * loop, 0.8))
node.setPosition(hou.Vector2(0, loop * nodePos))
loop += 1
but cant find the way how to set values with HSV, from doc should be something like this:
my_list = [nullA, nullB, nullC, nullD]
loop = 0
nodePos = -1
for node in my_list:
node.setColor(hou.Color().setHSV(50, 0.5 * loop, 0.8))
node.setPosition(hou.Vector2(0, loop * nodePos))
loop += 1
Thanks for help, Jan