예제 #1
0
def loadFromPreset( presetName ):
	p = Preset( LOCAL, TOOL_NAME, presetName, XTN )
	if not p.exists():
		p = Preset( GLOBAL, TOOL_NAME, presetName, XTN )

	assert p.exists(), "Cannot find a %s preset called %s" % (XTN, presetName)

	return loadFromFilepath( p )
예제 #2
0
def loadPreset(presetName):
    p = Preset(LOCAL, TOOL_NAME, presetName, XTN)
    if not p.exists():
        p = Preset(GLOBAL, TOOL_NAME, presetName, XTN)

    assert p.exists(), "Cannot find a %s preset called %s" % (XTN, presetName)

    return loadPresetFile(p)
예제 #3
0
def writePreset(presetName):
    preset = Preset(LOCAL, TOOL_NAME, presetName, XTN)
    writePresetToFile(preset.path())
예제 #4
0
def writeToPreset( presetName ):
	preset = Preset( LOCAL, TOOL_NAME, presetName, XTN )
	writeToFilepath( preset.path() )