Pop Up Preset Browser From Button (Still Cant Figure It Out)
-
Hi all,
I’m still struggling to make a pop up preset browser floating tile appear and disappear by clicking on a button.
Could anyone please help me with the steps from adding the first component for the button or panel onto the interface up to where I’d have a button that opens and closes a preset browser?
I already have an interface half built including assigned buttons, sliders, and some images, and I've already made all my sample maps and saved them into 1 sampler, so I’d just like to add this into the project.
I’ve read through this thread a good few times but I still can’t figure out which way to do it and I’m just going around in unproductive circles: https://forum.hise.audio/topic/919/floating-tile-button
The hexeract code on the thread above is exactly what I’m after, but I’m unsure what I need to add to my interface first (button or panel or ???) before I can make it work, and where I would add the code.
It would be greatly appreciated. It’s starting to hurt my head now
Thanks guys
-
@SteveRiggs said in Pop Up Preset Browser From Button (Still Cant Figure It Out):
a button that opens and closes a preset browser
Do you want the same button to open and close the tile? or a separate button within the tile?
-
@dustbro I think 1 button should be ok? Thanks mate
-
@dustbro Maybe an 'x' in the top right corner of the browser to close it could be cool too if it's easy enough to add?
-
Here's the most basic example using the built-in preset browser:
HiseSnippet 998.3ocsV0saaaCElxwrX1socsXO.B4JGfr.692FZw17rS7f2VRLlyJ1cELRT1DghzfhxYFA4cXOB6MXXuA698RzGgc4tK6PRIKoFmtnAL4KLN+xuygme3DkLfljHUHuVmtZAE48.7zUB87gyILAZ7AHuGhOhjnoJeGqAqVPRRngHOus9FCCuVMQ1u+5qFP3DQ.sfEB8FIKf98rXltf6j9eGiyGQBomxhKo8y6ONPJFJ4xT.Oag6hVPBNmLidLwnVCLx6dGFxzR0TMQSS.cFHCWMct7BgS+2vRXmwoFhdnofibrQCmy3gSxi0DDxq4jhHeKWj+I3iXgr07Kx.erUfegEkyAdMpBolUfTuaCRij7PiCtE34UBdMcv6w3oAJ1BcgDC1tOdr.tbhHPZuLrb5hZ7sMvCkfFB89wjyoiT.wZK57xtc2y+Ec6t6q2tMj5Sz9KIJ+AoZsTzy+K7yMcFUOTFuPJ.hN6jIempVMhKIZlX1oLN81sshVVO39wDblf5GkJBzLovWJxNEiaTRdmfberGbZ7T5ta29xsa2hE42Im1G9tz8m4qxQseBbkj6KsBz+0VEuxoOkmPqgChHf9Ed3JaX7ujr1Owv2Z+PBmeFTZ248iRS9nTJ3Xoldhnytsurcq1W01+8EEEsQYYNiSUaTrooS8gLriHM9LpJOQmqHTIVsT+92sR8.WdojhRwXASexBZFcQyfQlKpyk1EsNXKypHFKy0FZaPsBV2rWCkcuY55xTGTUa64dXVOm6VBw.L1BmckgrYmxy5P+33CHZRti.eBmyBpRyLYKuCnKgYgtl4V3CnImqkKfwZqKVfD7c3X+40G46h5up37OoOpjmdfNallySkKks96Q3JU2k7J5KK402Q5eAKTOG4g8dRCDZNkMat1P8aEYNWH8H7DEEpwGnjWjPUnylkOIu08.c+ai6XZZbA2e+5e45pbepg8e9GWaYaykd+J11Qtio7YJYI0kF14U9ll38VKxVBotEgl5mjav0TL6L3lxFQVJU.tLKjpH73TCTSis17Ln0GsLup2aKzMmZC6Njgobht5BEylyLAPqWkI2loyhDldU4Mq0XKS2Mtko2lp7uiv8w3ILcv7Mi2Fa.uPGv+23Mam813CihnA5Bv1DO5m9utftFP4GjollmiHZEC5cvPcwTn.NfBHQHf0IldjFldDGcWCsIyLkJBsDWCeYB6Yn8xD1KWHJlDnjuMvMSx7pfOxxAvjv9fnVvKy.Z+0ihL3NFdpxaCBLIhOEP9ls3o01hmUaKddss3E01hWVaK9rZawm+Arv7tvuNUKicsE.iIG5Fa4cnf.UU1JPz+.vTujPF
-
@dustbro Awesome mate. Thank you! I'll try that now. Cheers for taking the time! Really appreciated
-
@dustbro
Works perfectly mate. Thanks again!
I just worked out that if you change the names of the button or floating tile in the widget list after the script variable definition and custom callback definition have been added into the script editor, then to change them in every part of the code as well so it still works.
Changing the names first before I add them into the code is probably a good practice to get into the habit of, to save the extra typing.
Getting the hang of it now
-
@SteveRiggs EXCELLENT!!
-
@dustbro Thanks again for the help. Is there something I need to add into the script editor after the code for the pop up menu, because if I add any other components into the project now it stops the pop up menu from working. Am I missing a setting somewhere that stops this from happening?
-
@SteveRiggs There are a couple basic things that could cause an issue.
#1 - make sure the name of your Component exactly matches the name in your script.#2 - the Component List shows the order of your GUI from bottom to top. Is your panel underneath another component? Is it nested within another component?
Can you post a snip of your script? sometimes it's easier to take a peek at the code.
-
@dustbro I think the names are all ok. They should match. I was trying to add new components at the bottom of the list. I also tried adding them higher up to check, but it still happened. I'll add a snippet below if you want to take a look.
HiseSnippet 4476.3oc6b0Dbabbkd.oGKQJSa4extUsUsa0QUkXvDZB.R8Cs05P.PBHBKPBXLfRQwGrGNnAvXMX5wyOjB1VY8V6EeHo1bYchSpTQ4PtmiIGRBSkbaygsJW0dZO3SYurG7w8l2W287SOC.nFPSQyjUrrk3z+98d8W+5W28qUSahF1wgXKkYt1CsvRYdJYkglt82nuptoTsMkx7OHWV2vXH50vpluKZs7q4+aaCE.UPp7PKUGGbGoLYl8Fz5jYtmPh8ymsdYUCUSMbTRRR2hnqgqqOP2MJ0lEuIzCUU6faqOPnzWtXMMh4FDChGfuYkyKYopcW0d3cToEaFYoLOYkN5tDaEWUWriTlmnLoyPk9jCL4k+V5N56YfoeTPRAZHdxUIFcnHllpzF80M5zLPO3HIkQtYjVYVtV4Ej2VuidX5QZmKxx.EUCQ8QlYNJ3UPDd4SO7xH.umfCumUVQyV2xMJGJ1tfbMSWrcWUXHPDV7xJMyOXV4MHPILcWdf5cwUsgOBqQ1qt5UVBc0qlewquv7KLetbJtXKTgkPaXiAoAwaDzsTs0UAY.sItqtotqNwDksJwFU1y0kXtLpopiKtCpL1fbvhKLOLf53h1W0FTYXGrqCubnWEE.kdX2MHCrHlvGYuTrRcoXXY0Pr3vwx9AXoi.V5BXoqAQ0U2rGxUGxU0rCxhip8l.pJaSNvAa+PPkeo7QUHtVIDWZdNtjAHMUCi8.la.tvg.auwnjX3SsCv.PF5lXGzKp28EQtDz8QdNLgv1iKDcUMbv.pM7fRMhbBhktIsEPc8L0XJChYL0IU1rIFY0BDrk3MFTy2ag4mSuKJav2H3m2i+WzehI+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+0GEMTet.+EXuW.nKo8c3qGPr+CC90BgJn+qebwvTWI5tqzJVEi6rWzJavZc+402N9QUlY1Sp0cxjxg+miKUnubbJQDkKvQorb8pM78VB9soZRaTnHKnSo6SrVr6+81p6i6RrG3OJGV853dPGIlRaL3kHriAMwDUFPHt8Y21l3ow+BEqSHVULoy36HV9MX+KfRPml5SG0EawMb7FxWkUdg7WswIy2mblah4e4QQ3dd1nZ3vGc78L9BcbDGxs9xDwsHdzq4M3NNjg8vpP7r0vhWGxLz8Vw+NevFVTvlcXe74vO9YVH3tSnYVHHSoQsCdgfWan+4HG6E.F6TjidThBS.uM1cL2WjMN9sgACGDG2joc5aP7uU3oUh9x+xZOkGwmKXkO1txp7N9+anUziKRTM.Xg+.KBuEtxprNMZ7ilPzRiR6TjlvJwuCTyNqlLgKKFuDmXbfyDJyQdaMoWid3G8Q+40iqQ+vOY50nmfypNs0nO+3znwi7HwfTHt5b1DpyhezG8e96hqN+ru2zqN4IbkjM5UiBhveNqQuVxprVxDd4Ql4DNx+G9CKxZjBAX8S+uy9uwSYDvVXDzV3uNlOcz6FkeAuHPprcOyelDrqKGQcM8ulWXQKno.Yy+24tzNKNvM4LyXj7X8BBiyYjOcP4.UMaxapwOBZJVOOKE.kl9QF51zuQEh92ip7znKU+M0znaI8kJHIM9ZrxTWiUm5Zb4otFWYpqwUm5ZbsotFqcD0fFFEk7fMQwcECRnYENQJS39s.y6+ePtgbfD
-
@SteveRiggs It's working fine here.
Make sure the Interface Designer is set to Presentation Mode (the lock icon) so you can preview it's functionality. -
@dustbro Thats weird. It's still playing up here. It works at first but as soon as I add new components it stops the pop up menu from working. I did a short video below. Any idea what I'm doing wrong?
-
@SteveRiggs Because the latest floating tile that you add is under the Knob1, you need to drag out this floating tile to up or downward of the Knob1. Just see the 0:34 in the video, FloatingTile is under the Knob1 ;)
-
I think I may have worked it out. You need to 'deselect current item' before adding a new component so it doesn't link the components together in the list. If it links them the pop up menu code seems to stop working. Weird. I'll try adding a few more things and see if it carries on....
-
@orange You're right. I didn't realize that you had to deselect the current item first
-
@dustbro @orange Hmm, actually, it's still being weird. If I add items without them linked now, but then delete them again afterwards, that also stops the pop up menu working now too
-
@SteveRiggs You need to press compile button after the modifications like that. It will be fine ;)
-
@orange Ah haaa! That works! Thanks mate. As if it was something so simple. Every day is a school day!
-
@SteveRiggs Yeah of course, "The day a human stop learning is the day he dies." :)