I have a hard time trying to determine the distance between points by using points inside the sublists. I need to work like that because sometimes the script will have 3 groups and in some other case 20 groups. So I did group one part of the points in one node and other groups in some other node. Both nodes will always have the same number of groups. Like on the image below:
So, L1 number of indexes will always be the same but L2 number of elements will probably always be different. So, on the example above, I would like to connect both nodes to “Geometry.DistanceTo” node and I would expect that I will have in the first group 3*84 a number of elements but I can not set that. I do receive something like this:
Can you see where do I mistake, I did try a lot of things but I was unable to receive what I expect.