Esempio n. 1
0
    def setFileData(self, scrubFrame, fileName):
        """Sets the Path to a file directory"""
        self.openPathEXR = constructPath.replace('####', scrubFrame.zfill(4))
        self.fileName = fileName

        self.openPathEXR = os.path.split(settings.sourcePath(settings.currentCategory, fileName))[0]
        self.openPathJPG = os.path.split(settings.proxyPath(settings.currentCategory, fileName))[0]

        self.locationPath = settings.locationPath(settings.currentCategory, fileName)
Esempio n. 2
0
    def setFileData(self, scrubFrame, fileName):
        """Sets the Path to a file directory"""
        self.openPathEXR = constructPath.replace('####', scrubFrame.zfill(4))
        self.fileName = fileName

        self.openPathEXR = os.path.split(
            settings.sourcePath(settings.currentCategory, fileName))[0]
        self.openPathJPG = os.path.split(
            settings.proxyPath(settings.currentCategory, fileName))[0]

        self.locationPath = settings.locationPath(settings.currentCategory,
                                                  fileName)
Esempio n. 3
0
 def generateNukeTCL(self):
     formatStr = "{} {} 1".format(self.metaData['width'],
                                  self.metaData['height'])
     sourcePath = settings.sourcePath(self.category, self.itemID)
     proxyPath = settings.proxyPath(self.category, self.itemID)
     command = ""
     command += """Read {{
         inputs 0
         file \"{4}\"
         proxy \"{5}\"
         origfirst {0}
         origlast {1}
         first {0}
         last {1}
         format \"{2}\"
         proxy_format \"{2}\"
         label \"ElementsbrowserID# {3}\"
         }}""".format(
         self.metaData['startFrame'],
         self.metaData['startFrame'] + self.metaData['numOfFrames'],
         formatStr, self.metaData['id'], sourcePath, proxyPath)
     return command
Esempio n. 4
0
 def generateNukeTCL(self):
     formatStr = "{} {} 1".format(self.metaData['width'], self.metaData['height']);
     sourcePath = settings.sourcePath(self.category, self.itemID)
     proxyPath = settings.proxyPath(self.category, self.itemID)
     command = ""
     command += """Read {{
         inputs 0
         file \"{4}\"
         proxy \"{5}\"
         origfirst {0}
         origlast {1}
         first {0}
         last {1}
         format \"{2}\"
         proxy_format \"{2}\"
         label \"ElementsbrowserID# {3}\"
         }}""".format(self.metaData['startFrame'],
                      self.metaData['startFrame'] + self.metaData['numOfFrames'],
                      formatStr,
                      self.metaData['id'],
                      sourcePath,
                      proxyPath)
     return command