Forum
    • Categories
    • Register
    • Login

    To get all pluginParameter UI components?

    General Questions
    2
    5
    71
    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.
    • H
      harris rosendahl
      last edited by harris rosendahl

      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 @harris rosendahl
        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

        H 1 Reply Last reply Reply Quote 1
        • H
          harris rosendahl @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 @harris rosendahl
            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

            H 1 Reply Last reply Reply Quote 2
            • H
              harris rosendahl @Lindon
              last edited by

              @Lindon Oh I see, thank you so much!

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

              27

              Online

              1.2k

              Users

              7.9k

              Topics

              71.2k

              Posts