You’re setting a boolean knob to a string value. Since a non-empty string evaluates to True, you end up just constantly setting the disable knob to True over and over. Replace 'True' and 'False' with True and False, respectively.
-Nathan From: dcompz Sent: Monday, January 09, 2012 10:27 AM To: [email protected] Subject: [Nuke-python] Disabling/Enabling node on Write not working asexpected I'm probably missing something pretty simple here but I have a small line of Python in my Write node's beforeRender field to disable a specific node and another to enable it again after the render. The node is disabled just fine but never enables again. The code I am using to disable the node looks something like this: Code: nuke.toNode('nodeName')['disable'].setValue('True') I assumed that logically something like this: Code: nuke.toNode('nodeName')['disable'].setValue('False') or Code: nuke.toNode('nodeName')['disable'].setValue(0) would toggle it back off but for some reason it isn't. What am I doing wrong? -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
