To get all pluginParameter UI components?
-
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")];
-
@harris-rosendahl
getAllComponents
Returns an array of all components that match the given regex.Content.getAllComponents(String regex)
-
@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.
-
@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...
-
@Lindon Oh I see, thank you so much!