Disappearing Panel with Preset Browser
-
Hello all,
I am stuck here with where to go. I have two plugins where I am using the template David showed in a video for multiple panels with hide buttons. They work great. however in one of the Panels i have a floating tile with a preset browser. when selecting a preset in closes the panel. i see in forum post https://forum.hise.audio/topic/8805/hide-preset-browser-when-saving-a-preset?_=1711667634755 They were looking for this type of behavior. i am looking to keep the Panel with the preset browser open until manually closed or another panel selected. I have rearranged the button panel order confirmed saved in presets enabled and compiled both ways both on and off. It happens for me in this hise snippet
i am currently on the Master Build.
i am sure just one thing missed. Any advise appreciated. Thank you!
HiseSnippet 1601.3ocuX07aaTDEeVmrkFS+TBw4gbxQIMwNoeAg.N1wFLzjZhSaQJpTlr6X6QY8LtyNNeHTj5AtCGQ7e.WpD23XEh+f3.RHNEdyNytdWGmnjnB9PheeMueu27duYF2TJ7nggBIxYpsNrOE4bM2VGxUcq1kv3nFqgbtg65jPEUhMrpbXeRXH0G43LwmoY3L0jnnO+4mVgDP3dzgrPnmJXdzGw5wTC41r7WxBBpS7oaw5kR66VtgmfWUDHF.3YB2hn9DucIcnaPzpkyE4bkZ9LkP1RQTzPPmJB+Ca0UrO2n+SYgrcBnZhRnVvBYXip1kE32LNVCQHmIaNLxmvD4um65LeVB+gYfaEI.Ozhz4.mbmEjJcAfjSJHMoAR21skmj0WMThFOuqaCNrgzl.o5zPwnKJ2+LgaUAnAWMeOxtz5RfHwhB2uXw4vvelY474kzNXF7eHsGpv6Qj3Mdx5un4paT6QsvqfWbY7BKrUWJlOn2NPEfnMtOgSCBWXmAJEXSJCMB.i194KmhsUQK+7sERbAFPUbYLC+wobGPO6ryj+6xigOlEaa1yAMiCkNTUUQu9BNPTX5lZMld1BrYKMCDIZirt5rrpRjJmlYyGpUlqjhfpjffcfhuBdcI7NzHuA5eT97Ld.iSwsGv8TLAGmRgBdFimCh7fAzYvlfI5OABORfNWmhv+..nV2OOi6SO3wsiWiYzo9FZd5rtQIrpKQgURVmNTI0GHoXOKPG5oEV3yY9TLvOdOgvAcGH4vJ0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doc+KaETFb.iBMExg5xhbP3TAtncw3L0OsB9MZFkrLvu9GdVYMiEy9hYt+Rix3tCYbqHStmkQ4+XyOHhw8sLdS8p+RDiGL5Z7vQY7goWz502pFW2JZxnS7V5IrnMECziLVm.YLXhgKjiZAMrdTX+jquJebpxRWTSqgTKZTpy0A51O1Jrjl1wJrTrv+W7QOhmT7B6SwzkJWMhCD27neJhobWWSiSt.qqaw4Kh5w7YuvySWzdG3Zxi2lEuD1rzkvl6dIr4dWBat+kvlGbIr4gmoM5eglUGnD8LCw.FMqYNZvIUkN5eAXlVf.J
-
This seems to come up every week lately. I'm writing this before looking at the snippet but my senses tell me you have a button on your UI that shows/hides the panel, and you have that button's saveInPreset property set to enabled, which means when you load the preset the button is triggered.
-
@d-healey Thank you sir. i have been looking through the threads and looking for the right words to search. I think you are correct. Do you recall if there is a way to stop the button from triggering with the preset.
Another way I have tried is with this code. But once compiled only the first Button/Panel combo works.
const var Panel1 = Content.getComponent("Panel1"); const var Panel2 = Content.getComponent("Panel2"); inline function onButton1Control(component, value) { Panel1.showControl(value); Content.getComponent("Button1").setValue(value); } Content.getComponent("Button1").setControlCallback(onButton1Control); }; inline function onButton2Control(component, value) { Panel2.showControl(value); Content.getComponent("Button2").setValue(value); } Content.getComponent("Button2").setControlCallback(onButton2Control); };
-
@WaterSpoon said in Disappearing Panel with Preset Browser:
Do you recall if there is a way to stop the button from triggering with the preset.
Disable saveInPreset for the button (both buttons in your case).
-
@d-healey You my friend, are the man!!! This was it!!! Blessings!!!
-
-