Retrieving index from an complex tree with numerous points

Hey!

The script should compare every single point with a set of unique points and return index at which it resides. It works perefctly for branch 1 but not at all for branch 0. Any ideas why it works for branch 1 and not for branch 0? The numbering should start from 1 for each main branch,

Inquiry.gh (24.4 KB)

Thanks!

Moved to Grasshopper category

You should care about the data tree matching.


Inquiry_reV1.gh (43.5 KB)