/ HALion Developer Resource / HALion Script / Reference /

getUserPresetPath

getUserPresetPath(product)

Description

Function to obtain the file path for the user VST presets of a product. If no product is set, the function returns the file path of the current plug-in.

Available in: Controller.

Arguments

ArgumentDescriptionValue Type
productThe name of the product.string, optional

Return Values

Returns the file path for the user VST presets of the specified product.

Example

-- Print the user VST preset path for the current plug-in and Halion Sonic.
 
plugInPresetPath = getUserPresetPath()
halionSonicPresetPath = getUserPresetPath("HALion Sonic")
 
print(plugInPresetPath)
print(halionSonicPresetPath)

See also: getUserSubPresetPath