Input matching to get "many-to-many" output from a "one-to-many" component

I have a data tree of curves with which I want to sample using a list of parameter values.

My desired output for this specific example is to have a data tree with 4 branches with paths {0;0;0}, {0;0;1}, {0;1;0} and {0:1:1}, where the last number in each path corresponds to the index of the parameter value in the list. However, with the current setup the input matching pairs the first branch with the first item in the list, and so on.

I’ve tried using the Cross Reference component which gives me the complete set of points but they are not structured how I’d like them, which is to have an additional branch that distinguishes between the first sample and the second.

input_matching_question.gh (8.1 KB)

Edit: I’ve managed to get the output I wanted. I’ve attached my solution but would still like to see if anyone has anything simpler!

1 Like