Trees | Indices | Help |
|
---|
|
1 # Copyright (c) 2009 The Foundry Visionmongers Ltd. All Rights Reserved. 2 3 import nuke, re 4 12 15 18 2426 """ Search/Replace in Reads and Writes. """ 27 fileKnobNodes = [i for i in nuke.selectedNodes() if __NodeHasFileKnob(i)] 28 proxyKnobNodes = [i for i in nuke.selectedNodes() if __NodeHasProxyKnob(i)] 29 if not fileKnobNodes and not proxyKnobNodes: raise ValueError, "No nodes selected" 30 31 p = nuke.Panel("Search/Replace in Reads and Writes") 32 p.addSingleLineInput("Search for:", "rgbea") 33 p.addSingleLineInput("Replace with:", "rgbea") 34 success = p.show() 35 if success == 1: 36 searchstr = p.value("Search for:") 37 replacestr = p.value("Replace with:") 38 39 for i in fileKnobNodes: __ReplaceKnobValue(searchstr, replacestr, i['file']) 40 for i in proxyKnobNodes: __ReplaceKnobValue(searchstr, replacestr, i['proxy'])41
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Feb 14 13:53:20 2020 | http://epydoc.sourceforge.net |