Extract data form tree


I have this pretty simple task to do but I just found out my skills in data tree management are quite poor. For each of the point generated in the circles I need to extract the number of the circle. I understad the componets to be used are deconstruct tree and list item but I couldn’t figure out how to do that.

The circles should have path numbers {0} to {9}

The points are in paths {0;0} to {9;56}. The first number represents the circles.

Here’s some more information:

Designing with Data Trees | The Grasshopper Primer Third Edition

Thanks, but if I could have solved it by reading the primer I wouldn’t have posted the question here.

Glad you let me know. Good luck.

1 Like

What do you need the circle number for? Without knowing what the next step in the process is, it’s hard to advise.

this is just a mockup of a part the real script I m doing, exactly where I’m stuck. So to be sinthethc the circle likely correspond to a number of planar splines with different Z whose point I need to compare with the analog ones on the lower spline. To be precise I need to compare the Z to get the relative height of each spline compared to the previous one.

If all you need to do is measure the height difference between the nth point on different curves, then you can use Relative Item to pull points in pairs offset by one branch index.

Then plug Item A and Item B into the input of whatever comparison you’re doing.