Point.ByCoordinates from lists of X and Y values

Hello,

I feel like I am missing something very obvious here but I cannot get this to work in the way I need it to. I’m trying to form Points by combining a List of Lists of X-values with a List of Lists of Y-values. I think I tried every possible way of lacing and/or list matching nodes.

I need the “X-values” from List 0 to lace with every “Y-value” from List 0, the X-values from List 1 with all the the Y-values from List 1, and so on.
The amount of lists will always be the same, however a specific pair of lists of X and Y values can have a different amount of values between them.

I have seen similar issues on this forum, and it seems like what I need is a Python script of which I do not have any knowledge yet. I have tried to use/modify some of the solutions offered before but have had no luck. If anyone could help out that would be very much appreciated!

Thanks

Hi Sam, welcome :wave:

Rather than relying on lacing and levels, you can chunk the lists using List.OfRepeatedItem node. Note the list levels as this sets up the order for the lists

Amazing! Exactly what I need, can’t thank you enough. Cheers!

Try cross product lacing and @L2 for both inputs.

Hi Jacob, thanks for the reply. I tried that before and came close, however that combines each X-coordinate of List 0 with every Y-coordinate of every list and so on:

Mike’s magic did the trick for me here as shown on the right

Hi @sam99 If Mikes solution work for you, then please mark the solution, could probably help other in the future…:wink: