Forum
    • Categories
    • Register
    • Login

    Knob filmstrip via script

    Scheduled Pinned Locked Moved General Questions
    10 Posts 4 Posters 1.1k Views
    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.
    • ustkU
      ustk
      last edited by

      I am having a hard time to set a knob filmstrip by script:

      Content.setPropertiesFromJSON(id, {
                "filmstripImage": "{PROJECT_FOLDER}knob.png"
              });
      

      So I tried to add onInit:

      Engine.loadImageIntoPool("{PROJECT_FOLDER}knob.png");
      

      with no success, the pool stays empty...

      Hise made me an F5 dude, any other app just suffers...

      David HealeyD LindonL 2 Replies Last reply Reply Quote 0
      • David HealeyD
        David Healey @ustk
        last edited by

        @ustk Obvious question but where is your knob.png file located?

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        1 Reply Last reply Reply Quote 0
        • ustkU
          ustk
          last edited by ustk

          @d-healey in the Images folder as usual, and it's working if I want to load an image for a paint routine for instance
          Thinking it could be a bug...

          Hise made me an F5 dude, any other app just suffers...

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

            @ustk and shouldnt it be:

            MyKnob.setPropertiesFromJSON("filmstripImage": "{PROJECT_FOLDER}knob.png");
            

            --well maybe "id" is the id of the slider, but I'd try the simple method first.

            in fact wouldnt it then be:

            id.setPropertiesFromJSON("filmstripImage": "{PROJECT_FOLDER}knob.png");
            

            HISE Development for hire.
            www.channelrobot.com

            David HealeyD 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk
              last edited by

              @Lindon Thanks, but the method is good I think, I am always using it this way, but it is the first time I try a filmstrip
              In fact, the JSON is updated, so it should work:
              JSON.jpeg

              Hise made me an F5 dude, any other app just suffers...

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk
                last edited by ustk

                Oh that's not it, even the values min -100 & max 36 are in the JSON, but the actual knob stays at a value of 0-1
                The property editor shows all the good values so it is taken into account, but the knob itself doesn't refresh... Strange...

                Hise made me an F5 dude, any other app just suffers...

                1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @Lindon
                  last edited by

                  @Lindon

                  MyKnob.setPropertiesFromJSON("filmstripImage": "{PROJECT_FOLDER}knob.png");

                  Both methods are correct according to the docs. This method is the most logical one to use if you already have a reference to the control stored in a variable.

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @David Healey
                    last edited by ustk

                    @d-healey Ok so all the parameters are now working, I just forgot something obvious (the stepSize which was at 0...) But the image still doesn't load 🤔

                    Hise made me an F5 dude, any other app just suffers...

                    1 Reply Last reply Reply Quote 0
                    • ustkU
                      ustk
                      last edited by ustk

                      Stupidity... Again...
                      @d-healey You were right asking for the folder, it was in the good one, but wrong project... 🤣

                      tenor.gif

                      Hise made me an F5 dude, any other app just suffers...

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

                        @ustk we call that a PEBCAK
                        (problem exists between chair and keyboard)

                        Dan Korneff - Producer / Mixer / Audio Nerd

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

                        18

                        Online

                        2.2k

                        Users

                        13.4k

                        Topics

                        116.3k

                        Posts