@David-Healey
I had to make a slight tweak to the above, to fix some parameter 0 errors in the console:
inline function savePresetAs() {
FileSystem.browse(FileSystem.getFolder(FileSystem.UserPresets), true, "*.preset", function (f) {
var filePath = f.toString(f.FullPath);
var parentDirectory = f.getParentDirectory().toString(f.FullPath);
var userPresetsDirectory = FileSystem.getFolder(FileSystem.UserPresets).toString(f.FullPath);
if (parentDirectory == userPresetsDirectory)
return Engine.showMessageBox("Invalid Location", "Please choose a sub folder to store the preset.", 0);
if (!filePath.contains(userPresetsDirectory))
return Engine.showMessageBox("Invalid Location", "Please save the preset within the User Presets folder.", 0);
Engine.saveUserPreset(f.toString(f.FullPath).replace(".preset"));
});
}
This seems to work now. Maybe a HISE version issue, as this thread is quite old now.