Forum

    • Register
    • Login
    • Search
    • Categories

    Change image on preset load

    General Questions
    4
    7
    209
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hisefilo
      hisefilo last edited by

      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 change

      const var currentUserPreset = Engine.getCurrentUserPresetName();
      const var instrumentImage = Content.getComponent("instrumentImage");    
      
      
      Console.print(currentUserPreset);
      
      if (currentUserPreset == "Clarinet") {
      
          instrumentImage.setImageFile("{PROJECT_FOLDER}key-vectors.png", true);
          }
      
      
      1 Reply Last reply Reply Quote 0
      • ustk
        ustk last edited by

        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

        I can't help pressing F5 in the forum...

        hisefilo 2 Replies Last reply Reply Quote 1
        • hisefilo
          hisefilo @ustk last edited by

          @ustk hidden knob idea is brilliant! will try

          1 Reply Last reply Reply Quote 0
          • hisefilo
            hisefilo @ustk last edited by

            @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

            Dan Korneff 1 Reply Last reply Reply Quote 3
            • ustk
              ustk last edited by

              @hisefilo You're the guy! 👍

              I can't help pressing F5 in the forum...

              1 Reply Last reply Reply Quote 1
              • Dalart
                Dalart last edited by

                Very interesting, thanks for the shared information in this thread.

                1 Reply Last reply Reply Quote 1
                • Dan Korneff
                  Dan Korneff @hisefilo last edited by

                  @hisefilo great idea!

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  11
                  Online

                  1.1k
                  Users

                  7.0k
                  Topics

                  64.7k
                  Posts