Change component outputs

Hi all,

Is it possible to change the number of output params, depending of the input param value (in C# component)?
Something like this:

Thank you.

why don’t you wrap your outputs in a generic list , so that user can extract individual output using list item component?

Yes, but look for an alternative solution. In case of, override IGH_VariableParameterComponent, set all those methods to false or doing nothing, and modifies the outputs before the SolveInstance and after CollectData. Good luck.

Or a Tree (where first dim indices derive from the N of input) or some other “GH neutral” suitable for the scope nested collection (List of some custom class type, arrays, tuples, cats, dogs etc etc).