Expansions / Combo Box + SampleMaps
-
@DanH so your combo box always has a valid list of expansions in it, so whats the problem?
-
@Lindon If expansions are added or remove the list will need to be updated, this means the indexes will change in the combobox, so restoring from saveInPreset based on those saved indexes will cause a different expansion to be loaded.
-
@d-healey said in Expansions / Combo Box + SampleMaps:
@Lindon If expansions are added or remove the list will need to be updated, this means the indexes will change in the combobox, so restoring from saveInPreset based on those saved indexes will cause a different expansion to be loaded.
Correct - but as the "original" preset is no longer there its either load another or load nothing right?
-
@Lindon Well he's got it kind of working backwards I think because usually the last used preset should load and this will automatically load the correct expansion, but since he's using saveInPreset to load expansions it will go preset >> expansion >> combobox >> expansion >> ? or some other weirdness.
-
-
@d-healey I still think the preset browser is messed up though, i.e the Factory folders still appear when they should be the expansions'... if anyone else is able to test....
-
Is there a way to get an active expansion's name? Can't figure it out from the docs
-
@DanH There is a
getCurrentExpansion()
function and you can get the properties of the expansion withgetProperties()
and the properties includes the name. -
@d-healey Thanks, useful bit of script here for anyone interested:
https://forum.hise.audio/topic/4651/getting-info-string-from-file/2?_=1633706559837