May
18
Set tile color with python
Posted in: NUKE from The FoundryHi,
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)
Post a Comment