Unsolved Viewport and PresetBrowser - what I'm doing wrong?
-
I'm encountering an issue while trying to implement a custom preset browser in my project. Here's a breakdown of the situation:
I've created a snippet for a custom preset browser that works well as a standalone piece.
Both my snippet and my main project use the standard hierarchy: MainFolder > Bank/Category > *.preset
When I import the minimal snippet of the preset browser using File > Import HISE Snippet, I get a well-represented list of the .presets and their locations in folders and subfolders.
However, when I try to integrate this functionality into my main project by copying the code and creating the 3 viewports manually, I encounter errors.
For debugging, I've added Console.print statements throughout the code.
The puzzling part is that I can make the minimal snippet work, but when I recreate it in my main project, I seem to get incorrect indexes or other unexpected behavior.Specific issues I'm noticing:
when I Import It:
Snippet:
HiseSnippet 1993.3oc2Y0sbaabEdgrfiEiaqSFO85sb5jgbppLIkhrbTXMqjkRzDKaMgNdxDmLwf.KH25k6xBrPVrwdlz2r9zzq6aP6Y+ADKHHrbThunAWHSf87y2d9N6AGb7YIhPRZpHA4swSlOif7to+v4b4jCmDP4nSd.x6F9mkPRIRzAymEjlRhPddW6yTq5sw5H80+49GDvB3gjhGgPOUPCIOjNkJKd5rAeAkwNNHh7D5TGo2YvIgB9gBlHCPx076flED9hfwjGEnDaMej20OJhJEICkARRJxa8CDQyGNQ7RtQ9mRSoiXD0McQCACYd7wBVjBwpmhNbBkEcV9NNEAV4rh8+0L6+a6eJMht34EwgaoW.Wnga7vasxv6ZkfWWW30wAdq.RdNPZcCj9.+ggIzYxhUT3488OgKIIwAPX2EJFYQqcws7OT.RvkaMM3EjiSfaVnQqc6zYS7G2oS68az3N2A+YDINTLclfCxm1.HiTI97fDrg6+RgPh6iys2Xh7vbga0rPjls2GCF6THjg0Q9jpl5f.9KdHM8xLWtXVSNLaTrwf36fODhwiEITh5FkfUbhRygDFIDnjKwQthZc1VyzqfioLRpN77jIzTLncJN.yTfWDiCXLbv4ATV.Pr3rTRB1nm6dNNiwJ7C.ki3iobhBIeEnQwRsrDwwY7PIUvwRAlbgLIHThkSH3opXpIDf4vgBbbhXJfFKTmEHmzfxYfsAeZ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agk76Ib.szn7hUK5.yf.S7qn0QEUMT+kt5PMNzRaK2QnkJxY0Vq3UHfUqVAtN8VpNzBcW9.Pc5uhzj166jL8Hgj7XdKUlxFv1Du7RwwqbMqoXP4sUsrZDMIuIEaw0GfbxS0Bh7Vu7vP7qeXHtypIz7U5NBJ3mvoxGOivqaBNH6m1qFbhEUfnR8XS9s1wlLDRPHIHZDx687+BtXTWjFv1wO8733+88Qe0IOHPFjaFvhfWlQRjT0Fv6AjyogDyzX1v+AjzWHEyf84hoIf7t9k5zKJl2Eev7E2fe0fWRijSJV84ClPnim3L2rOe.xwU+Niq9PqqHQOkRd4LnuTs6tse0jFWeuiquSVx2+3+bYe+iACRCNmbhMUzPUYoDk4MrRLDvFR+GNiy6nApmYlc2M7e7EyGCLnVL4bEuecHifEgFMNehe2zu6N81sytau8tcPpWB3rvc6t881au6cudNKzSsxN85t6tct6d81SuBvS+d+tcZb2NMNFZvswmGvha7MjDA5sO1cK+xGXqKt8uFcowsAO++eha212NRs4Mx+QueBQsa5WTdrtHF5O9qpHFXWHEAgpNr1a4epHRMHhxyNVMvb6BPMzRCrUMTVdJUN2cf5+hMP42VH9A9mQkgSVMFWaEXDpU9t.i1wv+a7OJNFpcU.v08O9qe2LyczWJxjP2KmFHSnP9qOzX3Pf6CIf24bnKD3Ydqodai49Np6UQfgDdj9l+KbYWrq5dO6hcyWDMMHLQ781NOTC5+F5m.Xhqyd2v+T083xubReMkFQ+9vvxlphh8tpJt8UUwctpJ9wWUE28pp3cupJt2kqn5+Vn+ZlTL0brAgN8rizMS34cDWMpPc1J5+AaPyL9B
Questions:
What could be causing this discrepancy between the imported snippet and my manual implementation?
How can I troubleshoot this further to identify where the indexing or other issues are occurring?Any insights or suggestions would be greatly appreciated. Thank you for your help!"
-