def loadScenesForShotTool(): shot = PillarsUtils.loadGotoAsset() proj = PillarsUtils.loadGotoProject() shot_dir = str(shot.location) proj_dir = str(proj.getFullPath()) hbridge.loadScene(shot_dir, proj_dir) hou.ui.displayMessage("Load Scene Secessfull.")
def loadFromGoto(self): self.project = PillarsUtils.loadGotoProject() self.asset = PillarsUtils.loadGotoAsset() self.task = PillarsUtils.loadGotoTask() self.author = PillarsUtils.loadGotoAuthor() if self.project and self.asset and self.task and self.author: self.toolbar.setInfo(self.project.name, self.asset.name, self.task.name, self.asset.location, self.task.location) self.toolbar.setLogName(self.author.name) self.assets = PillarsUtils.loadAssets() if self.assets: self.updateAssetViewer()
def gotoTool(): project = PillarsUtils.loadGotoProject() if project: p_path = str(project.getFullPath()) hou.hscript("job %s" % p_path)