Set tile color with python

Hi,

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?

Code:

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)


No Responses to “Set tile color with python”

Post a Comment