Get start and end point together in list

Hi, how do I get the start and end point together in this list?

0
 0
  0 start point
  1 end point
 1 empty
 2
  0 start point
  1 end point

Some combination of flatten and transpose will get you there. You might have to play around with levels, flattening before/after the transpose, or potentially a double transpose.

Can’t say for sure without knowing your exact list structure, but something like this:

Not sure if the differentiation between nulls and empty lists is important to you, you may wish to manipulate those also.

1 Like

Try Curve.PointAtParameter(crv@@L1<1>, [0,1]@L2<1>);

1 Like

Thanks Jacob, that worked

1 Like