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())
def writeToPreset( presetName ):
	preset = Preset( LOCAL, TOOL_NAME, presetName, XTN )
	writeToFilepath( preset.path() )