Forum

    • Register
    • Login
    • Search
    • Categories

    Knob filmstrip via script

    General Questions
    4
    10
    101
    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.
    • ustk
      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...

      Tired to press F5 in the forum...
      Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

      d.healey Lindon 2 Replies Last reply Reply Quote 0
      • d.healey
        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
        • ustk
          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...

          Tired to press F5 in the forum...
          Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

          1 Reply Last reply Reply Quote 0
          • Lindon
            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.healey 1 Reply Last reply Reply Quote 0
            • ustk
              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

              Tired to press F5 in the forum...
              Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

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

                Tired to press F5 in the forum...
                Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

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

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

                    Tired to press F5 in the forum...
                    Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                    1 Reply Last reply Reply Quote 0
                    • ustk
                      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

                      Tired to press F5 in the forum...
                      Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                      dustbro 1 Reply Last reply Reply Quote 1
                      • dustbro
                        dustbro @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

                        22
                        Online

                        731
                        Users

                        5.4k
                        Topics

                        50.2k
                        Posts