Hi,

I’m a beginner with Grasshopper and new in this forum. I have a problem with the combination of tree data.

I have a tree with a variable amount of branches. In each branch, there are 32 breps. Each branch stands for one point. So I have “n” points with 32 variantens of breps. Now I would like to combine one item (means one variation of brep) of the first branch with one item of the second branch and so on.

Easy said, I’m searching all combinations that are possible if I only take one item out of each branch.

My goal is to have all possible variations of combinating the breps, but only with one brep at each point.

I know that this will produce a enormously high amount of variations.

I tried to solve it with Cross Reference, but the only way I could do this is extremly impractical with a loop and Hoopsnake. My problem is that I dont know how to use cross reference on many branches at the same time. And because of the variable amount of points (branches) I cant do it by hand and connect branch 1 and 2 with cross reference, the result with branch 3 etc. I dont even know how to start to solve this problem.

It would be super helpful if you could give me some tips.

Thanks for your help!