Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. nuke.Root().addKnob(nuke.Enumeration_Knob('NewColorspace', 'NewColorspace', [i for i in nuke.allNodes() if i.Class() == 'Read'][0]['colorspace'].values()))
  2. nuke.Root()['NewColorspace'].setValue(PROJ_COLORSPACE)
  3. allOuts = [i for i in nuke.allNodes() if i.Class() == 'Group' and 'versionOut' in i.knobs()]
  4. for i in allOuts:
  5. old = i['knobChanged'].value()
  6. new = '''
  7. if 'NewColorspace' in nuke.Root().knobs():
  8. nuke.thisNode()['colorspace'].setValue(nuke.Root()['NewColorspace'].value())
  9. '''
  10. old += new
  11. i['knobChanged'].setValue(old)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement