User Preset Label - DAW Session
-
Hi, I've created a custom user preset loader connected to a ScriptLabel, Save Button, and a Context Menu Panel, all set with savePreset = false. When I press the SavePreset button, I'll call these functions:
inline function onSavePresetControl(component, value) { if(value == 1) { // Open the file system browser to select the name and save the preset FileSystem.browse(FileSystem.getFolder(FileSystem.UserPresets).getChildFile("Presets"), true, "*.preset", save); } // save button off SavePreset.setValue(0); }; Content.getComponent("SavePreset").setControlCallback(onSavePresetControl);
function save(file) { // change the Label name according with the name typed on the file system browser PresetLabel.set("text", Engine.getCurrentUserPresetName()); Engine.saveUserPreset(file); // refresh the dropdown menu on the UI refreshBrowser(true); }
When I save my DAW project and reopen the session the ScriptLabel text is wrong.
How I fix this?Thanks
-
@pelle set your text display widget to SaveInPreset= true
-
@Lindon Already tried, create another problem, saves the name of the old preset not the new one
-
@pelle said in User Preset Label - DAW Session:
@Lindon Already tried, create another problem, saves the name of the old preset not the new one
post a snippet.
-
@Lindon I've solved, I'll publish the solution tomorrow.
Thanks for your help