Esempio n. 1
0
	def Button_OpenFolder(self, *args):
		StudioSettings.ShotInfo(0,1) # (1,1) = (Folder Creation, Print paths.)
		aPath = self.GetScenePathFromCurrentEnvironment().split('/')
		#aPath = self.sScenePath
		sPath = '/'.join(aPath)

		if not cmds.getModifiers() == 0:
			StudioSettings.OSFileBrowserCommand(sPath)
			aPrint = ['a7a8af', 'Opening Folder.', 0x6b6c75]

		else:
			StudioSettings.CopyToClipBoard(sPath)
			aPrint = ['a7a8af', 'Copied to Clipboard.', 0x6b6c75]

		cmds.inViewMessage(amg = '<text style="color:#%s";>%s</text>'%(aPrint[0], aPrint[1]), pos = 'botCenter', fade = True, fts = 7, ft = 'arial',bkc = aPrint[2] )
    def UIButton_OpenFolder(self, sFolder, *args):
        K = cmds.getModifiers()
        if sFolder == 'rv':
            #sPath = self.aShotInfo[6]
            sPath = self.dShotInfo['sPlayBlastToolPath']
        elif sFolder == 'seq':
            ##sPath = self.aShotInfo[7]
            sPath = self.dShotInfo['sPlayBlastSeqPath']

        if K:
            StudioSettings.OSFileBrowserCommand(sPath)
            aPrint = ['a7a8f', 'Opening a FileBrowser.', 0x6b6c75]

        else:
            StudioSettings.CopyToClipBoard(sPath)
            aPrint = ['a7a8af', 'Copied Path to Clipboard.', 0x6b6c75]

        self.PrintOnScreen(aPrint)