def openBackupDir(): ''' open backup directory in explorer ''' backupPath=blackboxHelper.getBackupSettings("@backupPath", backupSettings) operation=blackboxHelper.getBackupSettings("@operation", backupSettings) scriptName = (nuke.root().name().split("/")[-1]).replace(".nk","") # global dir if operation=="0.0": backupPath try: blackboxHelper.openFolder(backupPath+"/"+scriptName) except Exception, e: nuke.message("couldn't open backupPath. no such directory")
def openBackupDir(): ''' open backup directory in explorer ''' backupPath = blackboxHelper.getBackupSettings("@backupPath", backupSettings) operation = blackboxHelper.getBackupSettings("@operation", backupSettings) scriptName = (nuke.root().name().split("/")[-1]).replace(".nk", "") # global dir if operation == "0.0": backupPath try: blackboxHelper.openFolder(backupPath + "/" + scriptName) except Exception, e: nuke.message("couldn't open backupPath. no such directory")
''' open backup directory in explorer ''' backupPath = blackboxHelper.getBackupSettings("@backupPath", backupSettings) operation = blackboxHelper.getBackupSettings("@operation", backupSettings) scriptName = (nuke.root().name().split("/")[-1]).replace(".nk", "") # global dir if operation == "0.0": backupPath try: blackboxHelper.openFolder(backupPath + "/" + scriptName) except Exception, e: nuke.message("couldn't open backupPath. no such directory") # per script else: backupPath = "/".join( nuke.root().name().split("/")[:-1]) + "/_backups_%s" % scriptName try: blackboxHelper.openFolder(backupPath) except Exception, e: nuke.message("couldn't open backupPath. no such directory") def backupSetter(): blackboxSettingsPanel().show() toggleBackupProcess()
def openBackupDir(): ''' open backup directory in explorer ''' backupPath=blackboxHelper.getBackupSettings("@backupPath", backupSettings) operation=blackboxHelper.getBackupSettings("@operation", backupSettings) scriptName = (nuke.root().name().split("/")[-1]).replace(".nk","") # global dir if operation=="0.0": backupPath try: blackboxHelper.openFolder(backupPath+"/"+scriptName) except Exception, e: nuke.message("couldn't open backupPath. no such directory") # per script else: backupPath = "/".join(nuke.root().name().split("/")[:-1])+"/_backups_%s" % scriptName try: blackboxHelper.openFolder(backupPath) except Exception, e: nuke.message("couldn't open backupPath. no such directory") def backupSetter(): blackboxSettingsPanel().show() toggleBackupProcess()