Zero touch variable number of inputs on node


#1

Hi all!

Things have been going great thus far with node development, but there is another thing I cannot figure out. Is it possible to create a node that features a variable number of input ports, simmilar to the +/- buttons the list.create node from the Dynamo core? Or is this notoriously hard to do?

Alternatively it would also be OK to be able to check the level of the lists which are attached to my node. Now I’m using:

    public static List<Autodesk.DesignScript.Geometry.Curve> Lines(List<Autodesk.DesignScript.Geometry.Curve> DynamoCurveList)
    {
        //do stuff
    }

How would I need to change the code so that it can do stuff based on the level of the lists?

Thanks again! This forum really is a live saver :slight_smile:


#2

Here’s an example of such node implementation in Mandrill:


#3

heres another way to do it with a zero touch node: