Engine.getUserPresetList() path, check/exclude duplicate entries in list?
-
Hi all. How is everyone!?
Coming back to HISE after long time of inactivity.I have problem with my custom Preset Browser displaying duplicate list items/categories. If you load my snippet you'll see what i mean.
The script takes
Engine.getUserPresetList()
output path and chops it into 3 segments between/
. Then displays each segment for different viewports, as categories.
Could someone please tell me how can i exclude duplicate entries from being put intobrowser_CAT1List
andbrowser_CAT2List
??And also, how could i hide a specific entry from displaying in a viewport?
Thanks very much!!
HiseSnippet 1729.3oc2X0saSbDEd1PV.ufoPEO.irpTcPfwdSHDJBQH+AoD.Kb.gDEQmr633ordlUyNqCFDp20qqZeA5qPuqRUpp2W02Etr2QOyN65csicHwBPp0QIwy4LmY9luy2L6YmlRgGMJRHQVk1teHEYcZ6V84pNq1gv3nMWCYcR6lRZDUgVoeHIJh5irrN1s0dsJMKJ4yau4Jj.B2ilaBgdrf4Q2h0koxsFt7cYAAaP7oay5Vn2Kr7ldB9ph.QLfjiYWGER7dAYW58I5tMiMx53q6yTBYKEQQiPVythvueqNh83l9+XVDam.ptQCTKXfLl2PD3qQr1JZ0Nr.+lYq3HDLJMyW+Gyr9Ou88X9rA1y4gyl3.mGQQ9vZlCBdMJBu5Gd3YU.dyZf24ra4IYgpbOZrcJ6M4JprMARAEgkounY9iR1qJfdvU05RdAcCIzXPDUWrd8KhuR85yc8xNkct7kwa2gEg2kphvDb.KRgEswjf.LoGgEPf0ANNhJwgI5hnxNPtC5TOhzz6afWmuKiSqACwifNZzOaAtplMES3Cd0ascijdbgKfkzthdzHrpCE6yjTOfe6i4fhHB2VJ5l3Hjn5TCegKW1gwCf4D2Nl6oXBtF+5QqpjFPTrdzlPOmqryqK6fgOABOR.N.vZQ+0hBCXppUtbEMP08y7WV6pA0Bn7cUcv23F34myXV+QRUwRNN3o0e10ysZ9VpuJU.OuQurxIpcjh8.p44ZHtkgzdpd.F0dMM2I6QqpY1THLHOspHrugERX3TtYOlpiHVMfdhvLtR.oRNcOLQJI8K6zVHqx.6IIr41GZpEF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57lSykNNz8+QGSQNtzw+028iuaXqtZy+0e9tDyIONw5WrSpHrh9gZs.w2JwJkfW4qvJYL8hCbkbyJxI3T+H7n8YU+HVS.622Fjd.Snn5qoZHm2OVC03tIwLOTxR9lkeanm4bJn0F6Sh9EKi1+c7bV66I7igpbG95mz24VpCnnggtmG8c4viXp9ESMeTtSpCKbOmcSlxqy3w6LiAuvyd+Xi2za3qr85saCGlmC1Ys23Ie7uNOzCEw5cW2injL8daP6zBD4dT.Ibn3lnr86osqmc9aKJ2Oow6fOoNanaak5rQlSTWhmT7bOSga56P7jIV.LwSNGrj88zswCpXy1tds5ntLe1y87zTwk.rO9XbmhXleJhYgoHlqLEwr3TDyUmhXV5.iQeqx2JVI5Z1l.FZtt4nNq045KaMQQh9Wt8AtTC
-
Did you know you can style the preset browser now - https://docs.hise.audio/glossary/custom_lookandfeel.html ?
Or do you have another reason for rolling your own?
-
@d-healey said in Engine.getUserPresetList() path, check/exclude duplicate entries in list?:
No i didnt know! Awsome! i didnt know there was a new HISE version...
laf.registerFunction
gives me an error ofUnknown function
.No other reason.
Thanks! -
You need to use the scriptnode branch.
-
@d-healey
hmm. I downloaded the scriptnode version, compiled successfully butlaf.registerFunction
still gives me an error of:Unknown function
.
Any thoughts? -
@ten7kur Read the documentation again
const var laf = Engine.createGlobalScriptLookAndFeel();
;) -
@d-healey
Ha. Im a dumb ass.Ok i see how the presetBrowser is theme-able.
I have 2 questions.- Is it possible to change the Favourite Icon? I really dont like that star!
- Is it possible to Hide a specific folder from display?
Thanks!!
-
1: Not sure
2: Also not sure but I lean towards not possible. -
@d-healey
I looked to find the Star image in HISE uncompiled version but have only found thehi_core/hi_images
dir, and its not in there..... :( -
@ten7kur It's probably a vector
-
Although the presetBrowser theme-ability is great! i think i still need to stick to some custom stuff.
In my instance, i need 2 presetBrowsers.
Browser1 shows: BankName1>Complete Kits>Preset
Browser2 shows: BankName1>Individual Instr.>PresetUnless i can hide a directory from showing in the stock PresetBrowser @Christoph-Hart (could you confirm this is not possible?) i need a custom solution.
This brings me back to my post# 1.-
How can i exclude duplicate entries from being put into browser_CAT1List and browser_CAT2List??
-
And how could i hide a specific entry(list) from displaying in a viewport?
Thanks!
-
-
Hi, im back.
I really need some help.Ive gotten the first viewport to show Preset Banks ok. Viewport2 for a while worked and displayed the second directory correctly, now all the sudden its showing duplicate entries.... ??
The third viewport shows all the Presets, but how can i link them to CAT2?
Thanks !!HiseSnippet 2338.3oc2X0raajbDdFIMah3tx6ZGifjaSHxARDYQJYuaBhgPn9gZWBKYQKJ6j.EAilyzjrW0r6YmoGIy0vHF4zdL2RNlWg7F364xBjq4gHGyMmpldFN8PQIQKGuXclKjcUU28WUcUUWc0NT5QihjgV1Kd3n.pk8G4zYjPMXqADlvp01V12vYORjhF5pIs4n.RTD02x1d9OGIXu3BVIe+6eylDNQ3QyIYY8DIyitKaHSkSsciGv37cH9zCYCMj9dMZ4IEaI4xX.Oy6T2Jf3cBoO8gDTr4brr+fl9LkLrihnnQV1KrozeTmAxyDZ4eBKh0kSwAqZ0AVHM4cjbeDwHUqsFv39syz6HKKam14Vg40Vga6rGymMldt03SRX3lOCS6g8bWF7V0Dd0mc3Ya.uEzv6lNc7BYApbNH19PmVB3fpGANBLgkVVq4t6hNaIAIDpUFRNgtSHLX7Lp7Y0qur6mVud06uTokJAGDQJ2SIgtwQzv1gzHpZWFPZc2lh9LAck9T0iKvpBNy74w0RWb5Ej3ws28oB3nMZZh4tToZW1GxdqMNr4mu+AsZ1AgbsZGNfE4N.rlQtpATWvtnn9tdvgQeYHiFUxE+x15869kvF+7Wb+RZ58jgtUDtLQNvp9bMK7qVsNAblRuxpPlnOHpR5RzZZbDRAY1mcJU3FQCHgDvYHeEx13n.XeEqDgKWkx0JWMCAlBA51pfXZ4Op9w2ephrVtHqdr4x.FmATuSbY8RvTpMXjKXfH7PJweDZx8ym.HXEVz1zdvYqekT6yQYH43pUyEE+Nm.qDDGMnRFrpde.AaDDPE9tfMBg.8YfYBsQn4Jewn7H5U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88DiQ+gIT.8VjT81hN6gicG2vSGm5qTGeOD6oddXhx6rpk0zmyZWi4b2qwbt20XNe50XNe10XN+xqwb9UW5bvxH2HFJlV6+CDZ2Lo6E11iqj2ddq+Kn54nL.
-
Its been some time now since my last post.. Someone must know...?
I can't figure it out...
Could some one please take a minute to have a look at the script?
Thanks