HISE Logo Forum
    • Categories
    • Register
    • Login

    Plugin Parameter - global disable

    Scheduled Pinned Locked Moved General Questions
    15 Posts 3 Posters 460 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.
    • d.healeyD
      d.healey @Lindon
      last edited by d.healey

      @Lindon No the plugin parameters are fixed at compilation, I believe this is part of the vst standard. That's why Kontakt has a bunch of assignable parameters rather than adding them dynamically. The HISE equivalent would be the macro system.

      But why don't you just not use them if you don't want the user to?

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

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @d.healey
        last edited by

        @d-healey said in Plugin Parameter - global disable:

        @Lindon No the plugin parameters are fixed at compilation, I believe this is part of the vst standard. That's why Kontakt has a bunch of assignable parameters rather than adding them dynamically. The HISE equivalent would be the macro system.

        But why don't you just not use them if you don't want the user to?

        Because its a player that is essentially just "hiding" the editor controls - so I set a flag - and I build the player , I unset the flag and I build the "proper" program.

        HISE Development for hire.
        www.channelrobot.com

        d.healeyD 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @Matt_SF
          last edited by Lindon

          @Matt_SF said in Plugin Parameter - global disable:

          @Lindon what about :

          const allControls = Content.getAllComponents("");
          
          for(c in allControls)
          	c.set("isPluginParameter", false);
          

          wouldn't that lead to problems with the AU validation?

          Plus I'd want to be able to turn them back on - and not all controls are plugin params....

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Lindon
            last edited by

            @Lindon Oh in that case doing as Matt suggested should work because it's pre-compile time.

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

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @d.healey
              last edited by Lindon

              @d-healey said in Plugin Parameter - global disable:

              @Lindon Oh in that case doing as Matt suggested should work because it's pre-compile time.

              --yeah see my concerns above...I think it means the plugin will fail plugin validation..

              -- I guess I could copy the entire project into a new space and do this:

              const allControls = Content.getAllComponents("");
              
              for(c in allControls)
              {
              	c.set("isPluginParameter", false);
                      c.set("pluginParameterName", "");
                      c.set("isMetaParameter", false);
              }
              

              HISE Development for hire.
              www.channelrobot.com

              Matt_SFM 1 Reply Last reply Reply Quote 0
              • Matt_SFM
                Matt_SF @Lindon
                last edited by

                @Lindon yes if I'm not mistaken, auval gets angry when the 'metaParameter' is not enabled for UI items controlling more than 1 parameter, but if you don't have any, it should be fine

                Develop branch
                Win10 & VS17 / Ventura & Xcode 14. 3

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

                  @Matt_SF said in Plugin Parameter - global disable:

                  @Lindon yes if I'm not mistaken, auval gets angry when the 'metaParameter' is not enabled for UI items controlling more than 1 parameter, but if you don't have any, it should be fine

                  I think "auval" - and its sneaky little friend Logic - get snippy if :

                  isPluginParameter = false && pluginParameterName = !empty
                  isPluginParameter = true && pluginParameterName = empty

                  HISE Development for hire.
                  www.channelrobot.com

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

                    @Lindon If you're not using the component tooltip or text you could put the parameter name you want in there and clear or assign it dynamically in your loop. Otherwise you'll have to store it separately.

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

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

                      @Lindon ah interesting, I never ran into this (I always have a name for the param if it is a plugin Parameter)

                      Develop branch
                      Win10 & VS17 / Ventura & Xcode 14. 3

                      1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @d.healey
                        last edited by

                        @d-healey said in Plugin Parameter - global disable:

                        @Lindon If you're not using the component tooltip or text you could put the parameter name you want in there and clear or assign it dynamically in your loop. Otherwise you'll have to store it separately.

                        Yeah thats a good idea - sadly there are literally many hundreds of controls - its HoriZEN....

                        HISE Development for hire.
                        www.channelrobot.com

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

                          @Lindon Couldn't you write a loop to grab all the names before you wipe them and put them in a separate file?

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

                          1 Reply Last reply Reply Quote 1
                          • Matt_SFM
                            Matt_SF @Lindon
                            last edited by

                            @Lindon take the lazy road : grab and store everything you need in an array or object. Write everything in a file. Include that file in your script 😜

                            Develop branch
                            Win10 & VS17 / Ventura & Xcode 14. 3

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

                              @Matt_SF said in Plugin Parameter - global disable:

                              @Lindon take the lazy road : grab and store everything you need in an array or object. Write everything in a file. Include that file in your script 😜

                              thanks guys I'm taking the even lazier road - copy the project - do it there...it needs its own plugin name anyway...

                              HISE Development for hire.
                              www.channelrobot.com

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

                              25

                              Online

                              1.8k

                              Users

                              12.1k

                              Topics

                              105.7k

                              Posts