Пример #1
0
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")
Пример #2
0
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")
Пример #3
0
    '''
    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()
Пример #4
0
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()