Return some variables from node

Hi, I have a little misunderstanding how realize an output more than one variable to Dynamo classify it as two or more output-parameters. I writing nodes on C# and standard node looked up as:


Can anybody get an example how I can return more than one variable? I tried with Turple Class but haven’t success to understand that way :frowning:
My decision for it - create one string with comma-separator but it slowing all script (other nodes to “read” them)

OUT = var1, var2, var3

Is how I do it. I’d be interested to know if there are other ways. :slight_smile:

Hmmm, can you give an advice what did you mean?
I tried 4 variants but nothing is works:


And screen with Dynamo Sandbox:
image

P.S. I want get a node such below that let me output more than 1 parameter (all nodes that I saw have types of even output’s parameter = “var”)
image

I think I misunderstood what you were asking. :expressionless:

I mean, how looks like your code with that “out” parameter

Nah, ignore me. I totally misread your original question.

Hmmm, it decision looks me better than return one string:


and result in Dynamo

But I want know exactly how create single output’s parameters

I know this is an old post - but I think you are asking how to write a c# based zero touch node that has multiple output ports:

DynamoSamples/BasicExample.cs at master · DynamoDS/DynamoSamples (github.com)

1 Like