Match two Data Trees

Hello all,

I am new to this forum and I would really appreciate if someone can give me advice how to solve one Data Trees matching issue in Grasshopper

I am trying by myself for some time but I am not at the moment enough familiar with managing data trees

In short as shown on picture, Txt_1 tree can have infinite number of branches with 4 elements and Txt_2 is fixed as it is shown

I am trying to create new tree that will present combination of elements as I marked with colors and names

I would like to combine for example:

  • [0] element of {0} branch from Txt_1 to all elements of {0} branch from Txt_2 (Left with Left),
  • [1] element of {0} branch from Txt_1 to all elements of {1} branch from Txt_2 (Right with Right) etc…

Attached is also Grasshopper definition

Sample.gh (12.9 KB)

Thanks a lot in advance for all your help!


Sample_re.gh (14.1 KB)

1 Like

Thanks a lot for your fast and effective solution