Change image on preset load
-
Im trying to load custom images to the UI for each preset.
How can I detect user changed a preset? I can get the current preset name, and I can replace the image, but cant trigger that on preset changeconst var currentUserPreset = Engine.getCurrentUserPresetName(); const var instrumentImage = Content.getComponent("instrumentImage"); Console.print(currentUserPreset); if (currentUserPreset == "Clarinet") { instrumentImage.setImageFile("{PROJECT_FOLDER}key-vectors.png", true); }
-
I have kind of the same idea in mind recently but didn't have the time to try it...
I see two solutions here that might worth a try:
- using a timer to check the preset every now and then
- or why not a hidden knob, saved with the presets, with the image selection in its callback
-
@ustk hidden knob idea is brilliant! will try
-
@ustk Solved! A slider with a filmstrip containing all of the images as frames. Then just re-saved presets selecting the matching image on the slider
-
@hisefilo You're the guy!
-
Very interesting, thanks for the shared information in this thread.
-
@hisefilo great idea!