Match trees by branch paths - find corresponding item indices by branch

that is a bit painful :slight_smile: my best guess is, given tree_A and tree_B:

graft tree_A in such a way each branch carries just one single item

in tree_B, duplicate branches times the amount of respective elements in ungrafted tree_A

then Mass Addition to OR everything together and get one single boolean per branch, then Trim Tree et voilà :slight_smile:

visually:

Cull lines_Re_Re.gh (22.3 KB)