Use tags
-
Hi,
When I was looking for information on the doc, i have found this command about tags, but there is no doc about this :Engine.setUserPresetTagList(var listOfTags)
How can i link a preset to a tag, and how can i show in Hisescript the tags on the UI interface without the preset Browser Floating Tile?
Thanks,
Abyss -
@ABYSS_CO Good question…
-
@ABYSS_CO - well.....
In my experience (some time ago so it may have changed) the tag system in HISE is less than reliable - it can badly crash your plugin at random points - so instead I wrote my own tagging/file based system.
-
@Lindon ok thank you! I see... how did you make your own tag system? Is it possible to discuss about this via discord for example ? Thanks a lot.
Abyss -
@ABYSS_CO said in Use tags:
@Lindon ok thank you! I see... how did you make your own tag system? Is it possible to discuss about this via discord for example ? Thanks a lot.
AbyssWell you could ping me in the chat here but basically:
- create a json file that holds the preset name and its associated tags, e.g:
{ PresetName: "some name here", Tags: ["Bass","Heavy","Angry","whatever"] }
- write some code to read and save these preset metadata entries...
- Use a Panel to show your tags from the json (a paint routine)
- Use the Panels mouse callback to get a list of qualifying Presets and populate a list
- Use the list to load the preset.
-
@Lindon Thanks for the informations! I will try. And is it possible to add tag scripts in an expansion? With additional scripts? Because this method only works for the presets included in the standard version, no for future presets.
-
@ABYSS_CO Recent versions of HISE have a place in the project preferences for adding expansion tags. However they're not currently used for anything... but hopefully will be soon. Oh and of course you can access them from within your script.
-
@ABYSS_CO said in Use tags:
@Lindon Thanks for the informations! I will try. And is it possible to add tag scripts in an expansion? With additional scripts? Because this method only works for the presets included in the standard version, no for future presets.
see point 1 from my (admittedly brief) explanation - you could easily add a preset tag meta data file for each expansion you ship...