...Always on the PresetBrowser
-
I suggest the following thing that I am doing at HEXERACT:
- make a init preset and call it Init.
- whenever you save your project XML, load the Init patch - this also makes sure there is no noise in the Git commits because of parameter changes.
- the preset label is obviously saveInPreset = false (everything else is just nasty). In the onInit callback you just check whether its empty and do this:
if(!Engine.getCurrentUserPresetName()) Label.set(„text“, „Init“);
-
@Christoph-Hart said in ...Always on the PresetBrowser:
I suggest the following thing that I am doing at HEXERACT:
make a init preset and call it Init.
whenever you save your project XML, load the Init patch - this also makes sure there is no noise in the Git commits because of parameter changes.
the preset label is obviously saveInPreset = false (everything else is just nasty). In the onInit callback you just check whether its empty and do this:if(!Engine.getCurrentUserPresetName())
Label.set(„text“, „Init“);Thank you Christoph :)
-
@Christoph-Hart said in ...Always on the PresetBrowser:
if(!Engine.getCurrentUserPresetName())
I had to change this to
if(Engine.getCurrentUserPresetName() == "")
-
@d-healey said in ...Always on the PresetBrowser:
if(Engine.getCurrentUserPresetName() == "")
I checked both the ways, same result. If I don't put "Engine.loadNextUserPreset(true);" or the "Engine.loadPreviousUserPreset(true);" the label will be empty and the PresetBrowser without the preset list :(
-
@ossian1961 Yes Christoph's code doesn't solve the preset browser issue but it should fix the label problem.
-
@d-healey said in ...Always on the PresetBrowser:
@ossian1961 Yes Christoph's code doesn't solve the preset browser issue but it should fix the label problem.
Unluckily it doesn't fix nothing :(
-
@ossian1961 If you rename your preset title
- Init
it will be on top of the presets, and you can use
Engine.loadNextUserPreset(true);
-
-
@orange said in ...Always on the PresetBrowser:
@ossian1961 If you rename your preset title
- Init
it will be on top of the presets, and you can use
Engine.loadNextUserPreset(true);
That works! Thanks!!!!!! :)
-
@ossian1961 I've just recognized that, it works everytime but except first initialization of the plugin.
Because when the plugin is opened for the first time, after succesfully loading, plugin creates the user preset folders and presets.
But since presets haven't been created (because the plugin hasn't been loaded yet for the first time) on first initialization, the label box will be empty.If you load plugin again, the label box will be ok and show - Init preset since the presets have been created on previous plugin opening.
There should be a fix for that.
-
@d-healey said in ...Always on the PresetBrowser:
@ossian1961 This doesn't work for me, it shows the next preset not the last one that was used.
This works though :p
Engine.loadNextUserPreset(true); Engine.loadPreviousUserPreset(true);
Yeah It Does What It Supposed To Do, But The Issue With This Method Is That The Instrument/ Effect Won't Remember It's Last Settings When An End User Closes His Project.
In Short: Don't Use This Method️
-
This post is deleted! -
@orange Hi, have you found a solution for this? I have the same problem.
"I've just recognized that, it works everytime but except first initialization of the plugin.
Because when the plugin is opened for the first time, after succesfully loading, plugin creates the user preset folders and presets.
But since presets haven't been created (because the plugin hasn't been loaded yet for the first time) on first initialization, the label box will be empty.If you load plugin again, the label box will be ok and show - Init preset since the presets have been created on previous plugin opening.
There should be a fix for that."
-
@pelle Export your project with the label set to whatever you want the default to be.
-
@d-healey
The Label now works, but the first time I open the exported instrument and click on 'Scripted Panel' to access the Preset drop-down menu, it fails to open. I always need to close the plug-in and reopen it.
Can you help me?HiseSnippet 3131.3oc6as7aabbFeojVGsrwwVEo.8PQ5TdhpQVVjTNN0NtghRjwpQOXIkcRfadrZ2gjS7xcY1cnrkMDZPQOjC8PO3K4V.5e.E8XO0bn+CTDz64bQOza8n522rulc4tTxJOfMpHLf898Mey7a988Xdrqa65XP87bbUJns2ginJEdQ0tGZyGr9.clsxlanTXd01tTOJWowgiz87nlJEJL6agZKnMmh32+4ManaoaaPiEonbWGlAcK1PFOVZ65uMyxpktIcO1PoVuZ8MMbrW2wxYLfjYUWQYjtw806S2QGa1LpJEtPSSF2wsKWmS8TJLWCGyC6Nv4A19s+tLO19VT7gJJcgNxWbKGKSDwnTk0GvrLaGNi8Tfdoc77eV+4+KqtMyjEIOlGtrPAI1BY9nvLIg2rIfWEY3shD7x.REjfzb9PZA0tFtrQ7XMHd9ApaZyot8zAZWFJ9sUYl+9kTW2AZgMe4g52m1xEdHxhxUpsx0uZ0kHUt10qd0pKdyhvOvE3wIGn6R1zdzXN4VjvNnOkutyvQN1vCkKIzVBrI1fcGymlE9pSZxl6z9N605cAaDAbnEM60iZfC.pJ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rGlHXQLyihB+NXaTOmuHzkT2l51mtmSWfgnNOyt7yYmiTh61I4HgVIN5Rmhhb0lRQtYRu7iRffvhbj+8KO3LTjSXx0R2ouVffOpWi+jnEWOce75oE7KjyP++90zx6bcyq5+M4c9A6N+fcmevtyOX2Yn.x1vZr0VcJEPduu77BHmW.47BHO6T.46syt88b4MkogtBSftg5FtNeng+moDVNXdgDfqsEueHM0swmIUB+7jTUWY4UvOIE1GZXf2I+U.eR11T8LXSsyfMqdFr4ZmAadsyfMW+LXyqOUav+C+gmYdneNGHncSwWLPgBR6uW4+Avvi7G
-
@pelle Why not use a combo box?
-
@d-healey Because I wanted to create sub-menus
-
@pelle You can do that with combo boxes. Search the forum, I posted an example in the last few months
-
-
@d-healey Hi, same problem also with the combobox