Posted By

throb on 04/23/13


file python write nuke

Versions (?)

Replace procedural Nuke Write paths with real paths in write node by replacing the write node(s)

 / Published in: Python

This allows you to take a node that has expressions in it and create copies of them that are hard pathed. It will also disable said expression driven write nodes and disable them.

  1. import nuke
  4. for n in nuke.allNodes('Write'):
  5. print nuke.filename(n)
  6. nodeInput = n.dependencies()
  7. newWrite = nuke.nodes.Write(file=nuke.filename(n))
  8. newWrite.setInput(0,nodeInput[0])
  9. n.knob('disable').setValue(1.0)

Report this snippet  

You need to login to post a comment.