Culling tree branches based on index value GH

I am trying to cull branches in a list with a specific index value (only for the second index with in each branch).


cullindex.gh (3.5 KB)

I need to maintain the branch.


I want to partition these two branches from the tree. However, I need the script to accommodate that I am only extracting those branches because of the value of the item of their second index.

I understand that previously you have to define what that value is to compare.

Always is better manually draw the result that you want to achive…

SharedScreenshot

cullindex.gh (7.3 KB)

1 Like

You are using words (“cull”, “partition”) that mean something in GH, but you seem to mean something different? So this is a wild guess…?


branch_2024_Jun12a.gh (9.6 KB)

P.S. Or maybe this?


branch_2024_Jun12b.gh (10.2 KB)

1 Like