def getHires_Path(keyPrjData, version=None): version = None if version is False else version depth = keyDataProjectUtils.getDepth(keyPrjData) if depth < 3: # if the depth is less than 3, then this is not a shot and it haven't HiRes. print("expected shot data") return rawPath = handleTemplate(keyPrjData, hiresPath_templ, root_dependence=True) versionFile = "" try: versionFile = getVersioinFile(rawPath, version=version)[0] except exceptionUtils.pathError as err: err.displayMessageIcon() return return "/".join([rawPath, versionFile])
def callContextMenu(self, pos): menu = QMenu() # Actions menu.addAction("run", self.runSoft) if self.admin: menu.addSeparator() menu.addAction("addConfig", self.addConfigFile) menu.addAction("removeConfig", self.removeConfigFile) depthData = self.projectListWidget.depthData depth = keyDataProjectUtils.getDepth(depthData) if depth == 0: menu.addAction("Activate/Deactivate", self.setActive) menu.exec_(QCursor.pos())
if not sys.stdin.isatty(): args = sys.stdin.readline().decode("utf-8") args = json.loads(args) keyPrjData = args.get('keyPrjData') if args.get( 'keyPrjData') else dict() keyPrjData = OrderedDict( sorted(keyPrjData.items(), key=lambda x: len(x[0]), reverse=True)) taskData = args.get('taskData') if args.get('taskData') else None extraJobData = args.get('extraJobData') if args.get( 'extraJobData') else None keyPrjPathsList = [] # ================ GET CONFIG PATHS ========================== depth = keyDataProjectUtils.getDepth(keyPrjData) for d in range(depth): config = keyDataProjectUtils.getKeyPrjPath(keyPrjData, d + 1, nameInclude=True) keyPrjPathsList.append(config) # ================ GET VARIABLES ========================== allEnvironmentVariables = getAllEnvironmentVariables(keyPrjPathsList) houdiniLocation = allEnvironmentVariables['location'].format( ver=allEnvironmentVariables['version']) houdiniLocation = checkHoudiniLocation(houdiniLocation) if houdiniLocation: # ================ BUILD HIP SCENE =========================== if taskData is not None:
def getDailies_Path(keyPrjData, version=None): depth = keyDataProjectUtils.getDepth(keyPrjData) if depth < 3: # if the depth is less than 3, then this is not a shot and it haven't Dailies print("expected shot data") return "" return handleTemplate(keyPrjData, dailiesPath_templ, root_dependence=True)
def getPRM_Path(keyPrjData): depth = keyDataProjectUtils.getDepth(keyPrjData) if depth < 2: # if the depth is less than 2, then this is not an episod and it haven't prms print("expected episod data") return "" return handleTemplate(keyPrjData, prmPath_templ, root_dependence=True)
def getSRC_Path(keyPrjData): depth = keyDataProjectUtils.getDepth(keyPrjData) if depth < 3: # if the depth is less than 3, then this is not a shot and it haven't HiRes print("expected shot data") return "" return handleTemplate(keyPrjData, srcPath_templ, root_dependence=True)
def udpateAllProjectList(self): chkBox_showAllFolder = self.chkBox_showAllFolder.isChecked() depthData = self.projectListWidget.depthData depthIndx = keyDataProjectUtils.getDepth(depthData) self.projectListWidget.chkBox_showAllFolder = chkBox_showAllFolder self.projectListWidget.updateList(depthData, depthIndx)