/ 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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import nuke for n in nuke.allNodes('Write'): print nuke.filename(n) nodeInput = n.dependencies() newWrite = nuke.nodes.Write(file=nuke.filename(n)) newWrite.setInput(0,nodeInput[0]) n.knob('disable').setValue(1.0)