HISE Logo Forum
    • Categories
    • Register
    • Login

    Knob filmstrip via script

    Scheduled Pinned Locked Moved General Questions
    10 Posts 4 Posters 528 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...

      Can't help pressing F5 in the forum...

      d.healeyD LindonL 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @ustk
        last edited by

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

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public 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...

          Can't help pressing F5 in the forum...

          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

            d.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

              Can't help pressing F5 in the forum...

              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...

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.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.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @d.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 🤔

                    Can't help pressing F5 in the forum...

                    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

                      Can't help pressing F5 in the forum...

                      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

                        50

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.9k

                        Posts