for n in nuke.allNodes():
if n.Class() == 'Blur':
n["disable"].setExpression('$gui')
You were using myblurNode["disable"].setValue(exp) at each iteration instead of
"i" which is why it was setting only the first node. Better use class() instead
as a blur node might not necessarily contain "blur" in its name. Also, setValue
expects value for the knob type (boolean in this case), try setExpression
instead.
Cheers,
D
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python