Here it goes:
as a python excercise, i wanted to set the tile color for all nodes to a user specified color.
Should be simple 🙂 But the following code always just sets to a grey value, and secondly, the default value for the colorchip doesnt seem to do anything?
nodes = nuke.allNodes()
p = nuke.Panel("Colorize")
p.addRGBColorChip("Color","4194303")
p.show()
tcolor = p.value("Color")
for i in nodes:
i.knob('tile_color').setValue(tcolor)
tcolor seems to be an integer value, and thats what the knob tile_color expects, but for the life of me i cant figure it out.
Post a Comment