Creating curve.endpoint from curve list

Hi everyone,

What am I doing wrong? i wish to create Curve.EndPoints on a list of curves without loosing the hierarchy or the empty lists. Based on the picture and the list of Curves, it should look like:

0 Empty List
1 Empty List
2 Empty List
3 Empty List
4 Empty List
5 List

  • 0 Point (X,Y,Z)
  • 1 Point (X,Y,Z)
    6 Empty List
    7 Empty List
    8 List
  • 0 Point (X,Y,Z)
    9 List
    0 Point (X,Y,Z)

Thanks for your help!

Hi @norbert.schlotter
You can use “Flatten” node or “List.Clean” node before Curve.EndPoint.

I don’t want it to flatten though. It hast to keep the hierarchy as described earlier.

@norbert.schlotter sorry i didn’t noticed that. Did you try changing to longest for “Curve.EndPoint” node?

Here is one way to replace items in a list of elements that don’t have any IDs (String.Contains is from Archi-Lab Grimshaw):

Here’s another way, with a node from clockwork:

1 Like