Anything like graft tree in grasshopper in dynamo?


When I create a list of points called group A , transform them as group B, then I want to create a list of lines connecting corresponding points in these two group. This can be done in grasshopper using graft tree. How about in dynamo?

is this what you are after? The lines can be created easity enough with the 2 seperate lists. More generically, if you want to create pairs, you can use a list node as a function and pass it into a combine

I personally use List.Chop to “graft” lists.

Dynamo graft:


Is there a way to graft another layer, for example :

current tree structure is
0:0, 1:0, 2:0…0:10,

what if I need tree structure as :
(branch 0 ) 0:0, 1:0,…0:10, (branch 1) 1:0, 1:1…1:10, (branch 2) 2:0, 2:1…2:10.
How is it possible with lists and Ranges ? in grasshopper it was quite easy through ranges and graft index.

Look into List Levels. It’s a similar concept used to specify the list structure you want to pass through a node input in order for the node to execute with a specified structure.