HISE Logo Forum
    • Categories
    • Register
    • Login

    To get all pluginParameter UI components?

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 221 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.
    • ?
      A Former User
      last edited by A Former User

      Is there an API to get all pluginParameter UI components into an array? Or we need to write them manually like below example?

      const var controls =   [Content.getComponent("KnobOne"),
      			Content.getComponent("OtherKnob"),
      			Content.getComponent("AnotherGoodKnob"),
                            	Content.getComponent("AwesomeButton")];
      
      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @A Former User
        last edited by

        @harris-rosendahl

        getAllComponents
        Returns an array of all components that match the given regex.

        Content.getAllComponents(String regex)

        HISE Development for hire.
        www.channelrobot.com

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @Lindon
          last edited by

          @Lindon Oh thanks. So in this case, for grabbing the pluginParameter enabled components, what would be the String regex?

          I tried an empty string, it gets all components.

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @A Former User
            last edited by Lindon

            @harris-rosendahl - its not going to return components based upon their internal values - just on their name I think, so you will have to get them all and then loop thru getting the param you care about...of course you could always name your components in a way that distinguishes the pluginParmater enabled ones...

            HISE Development for hire.
            www.channelrobot.com

            ? 1 Reply Last reply Reply Quote 1
            • ?
              A Former User @Lindon
              last edited by

              @Lindon Oh I see, thank you so much!

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

              25

              Online

              1.8k

              Users

              11.9k

              Topics

              104.0k

              Posts