通过替换写入节点,将写入节点中的过程Nuke写入路径替换为实际路径

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通过替换写入节点,将写入节点中的过程Nuke写入路径替换为实际路径相关的知识,希望对你有一定的参考价值。

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
  2.  
  3.  
  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)

以上是关于通过替换写入节点,将写入节点中的过程Nuke写入路径替换为实际路径的主要内容,如果未能解决你的问题,请参考以下文章