def doLocalise(localiseAll):
rootNode = nuke.root()
readKnobList = []
nodeList = []
if localiseAll:
nodeList = nuke.allNodes(group=rootNode, recurseGroups=True)
else:
nodeList = nuke.selectedNodes()
nodeList2 = []
for node in nodeList:
if node.Class() == 'Group':
nodeList2 += nuke.allNodes(group=node, recurseGroups=True)
nodeList += nodeList2
for n in nodeList:
readKnob = nuke.getReadFileKnob(n)
if readKnob != None:
if nuke.localisationEnabled(readKnob):
readKnobList.append(readKnob)
nuke.localiseFiles(readKnobList)
0 件のコメント:
コメントを投稿