Create dynamic output C# component

Hey everyone, I’m a little new in C# scripting so sorry if this is a simple question.
I’m trying to create a C# component which gets a string, for example and create it’s output names, based on that string words.
I did something like this without error, but when I plugged in a string, grasshopper raised an error:

You set the data to “i” output ports. You only have 1 output param, so whenever you setdata to 1,2 … it cannot find the port. What you want is a list output. Change param access to “list” and set the data as list. See SDK for details.

2 Likes