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 loadTool(): asset = PillarsUtils.loadGotoAsset() task = PillarsUtils.loadGotoTask() hbridge.loadDepend(str(asset.location), str(task.name))
def publishCurrentAsset(): asset = PillarsUtils.loadGotoAsset() task = PillarsUtils.loadGotoTask() mbridge.assetPublish(asset.location, asset.name, task.name, task.version) mc.confirmDialog(title='OK', message='Publish %s successful.' % asset.name)