How to extract the branch data of the tree data into a list?

Excuse me, I want to filter out the empty values of the tree data, and then extract the branch paths of the data and the item data inside according to the structure of the tree data to form two separate lists?




测试项目-3.gh (12.9 KB)

Hi,

is this what you are looking for?

Data branches.gh (35.0 KB)

Something like this might work for you as well.

1 Like

After seeing your train of thought, I adjusted the process a bit!


Test-2.gh (13.0 KB)

Hi,

you can do it like this for lists like the True/False list you provided. For this method you will always need to provide a pattern for the Cull Pattern component.

Or you can use this method from this topic:

Data branches_02.gh (38.7 KB)

This is better to avoid creating a pattern for the Cull Pattern component.

Choose whatever works better for you.

Thank you very much, let me figure out how to eliminate the False value in the branch in the tree data according to the Boolean value, and how to delete the branch in the data data after the False value is eliminated!

Which command is used to display the names of nodes?
Snipaste_2023-02-27_09-53-31

It’s the Sunglasses plugin available on food4Rhino

Thank you so much for your suggestion! :grinning: