我正在使用 Foundry Nuke,我遇到了这个问题:
这是我的程序:
def testing(*args):
for a in nuke.allNodes('Read'):
if 'lighting' in a ['name'].value():
readlgt = a
if 'GI' in a['name'].value():
# global readGI
readGI = a
mergelgt = nuke.nodes.Merge2(operation='plus')
mergelgt.connectInput(0, readlgt)
mergelgt.connectInput(1, readGI)
testing()