#this is to gui disable
for nodes in nuke.allNodes():
if "lur" in nodes.name():
nodes.knob('disable').setExpression("$gui")
for nodes in nuke.allNodes():
if "Defocus" in nodes.name():
nodes.knob('disable').setExpression("$gui")
#this is to enable
for nodes in nuke.allNodes():
if "lur" in nodes.name():
nodes.knob('disable').clearAnimated()
nodes.knob('disable').setValue(0)
for nodes in nuke.allNodes():
if "Defocus" in nodes.name():
nodes.knob('disable').clearAnimated()
nodes.knob('disable').setValue(0)
On this page of the site you can watch the video online Nuke script Optimization using Python Part 2 with a duration of hours minute second in good quality, which was uploaded by the user VFX Channel 30 July 2023, share the link with friends and acquaintances, this video has already been watched 248 times on youtube and it was liked by 16 viewers. Enjoy your viewing!