### doLocaliseAll
import nuke
import os
import sys
inScript = sys.argv[1]
nuke.scriptOpen( inScript )
rootNode = nuke.root()
readKnobList = []
nodeList = []
nodeList = nuke.allNodes(group=rootNode, recurseGroups=True)
for a in nodeList:
if a.Class()=='Read':
a['cached'].setValue(1)
a['cacheLocal'].setValue(0)
for n in nodeList:
readKnob = nuke.getReadFileKnob(n)
if readKnob != None:
if nuke.localisationEnabled(readKnob):
readKnobList.append(readKnob)
nuke.localiseFiles(readKnobList)
nuke.scriptSave( inScript )
print inScript
0 件のコメント:
コメントを投稿