set value question

How can I return and set the value of a checkbox please? I can easily find lots of examples on other values, read paths etc but not this one.. I’ve tried:

import nuke

def checkIfPremultOn():
nodes = nuke.allNodes()

for node in nodes:
if node.Class() == "Read":
node.premultipled(1)
node.knob(‘premultipled’).setValue( ‘true’ )
node.knob(‘premultipled’).setValue(1)
node[‘premultipled’].setValue("true")

One can probably tell I’m fresh to this game.. thanks!

No Responses to “set value question”

Post a Comment