Ejemplo n.º 1
0
    def __init__(self, filenames, targetRoot, delSrc, copyFolderStruct, sourceRoot, copyAdd, addSuffixes):
        super(ProcessorCopyMove, self).__init__()

        self.filenames = [cleanupPath(f) for f in filenames]
        self.targetRoot = cleanupPath(targetRoot)
        self.delSrc = delSrc
        self.copyFolderStruct = copyFolderStruct
        self.sourceRoot = cleanupPath(sourceRoot)
        self.copyAdd = copyAdd
        self.addSuffixes = addSuffixes

        self.processedInfo = {}
Ejemplo n.º 2
0
    def __init__(self, filenames, targetRoot, delSrc, copyFolderStruct,
                 sourceRoot, copyAdd, addSuffixes):
        super(ProcessorCopyMove, self).__init__()

        self.filenames = [cleanupPath(f) for f in filenames]
        self.targetRoot = cleanupPath(targetRoot)
        self.delSrc = delSrc
        self.copyFolderStruct = copyFolderStruct
        self.sourceRoot = cleanupPath(sourceRoot)
        self.copyAdd = copyAdd
        self.addSuffixes = addSuffixes

        self.processedInfo = {}
Ejemplo n.º 3
0
 def getTexDb(self):
     texDb = {}
     for root, directories, files in os.walk(self.retargetRoot):
         for f in files:
             fullPath = cleanupPath(os.path.join(root, f))
             lowCaseFilename = f.lower()
             if lowCaseFilename in texDb:
                 self.log('Duplicate texture in retarget directory: {0}. Will be skipped during standard retargeting.'.format(fullPath))
             else:
                 texDb[lowCaseFilename] = fullPath
     return texDb
Ejemplo n.º 4
0
 def getTexDb(self):
     texDb = {}
     for root, directories, files in os.walk(self.retargetRoot):
         for f in files:
             fullPath = cleanupPath(os.path.join(root, f))
             lowCaseFilename = f.lower()
             if lowCaseFilename in texDb:
                 self.log(
                     'Duplicate texture in retarget directory: {0}. Will be skipped during standard retargeting.'
                     .format(fullPath))
             else:
                 texDb[lowCaseFilename] = fullPath
     return texDb
Ejemplo n.º 5
0
 def onEditingFinished(self):
     self.setPath(cleanupPath(self.getPath()))
Ejemplo n.º 6
0
 def getAttrValue(self):
     slashedPath = cleanupPath(m.getAttr(self.getFullAttrName()))
     if slashedPath.startswith('//'):
         return '//{}'.format(slashedPath[2:].replace('//', '/'))
     else:
         return slashedPath.replace('//', '/')
Ejemplo n.º 7
0
 def onEditingFinished(self):
     self.setPath(cleanupPath(self.getPath()))