Tree subdivision based on index list

Hello there!

I was recently attempting to restructure a data-tree based on a list of indexes. Select item works with a flat tree, but I couldn’t manage to make it work on two and more levels of branches.

Please find the file attached.

Thanks in advance for advice.

Ivan
Create_Tree_001.gh (8.6 KB)

Hey

Here are two methods for item selection in a 2 or more level datatree
Is that what you were looking for?

Create_Tree_001.gh (14.9 KB)

Hey Antoine,

Sorry I wasn’t clear :smile:
It’s more about creating tree structure based on index list. Please check the new attachment.


Create_List_002.gh (7.3 KB)

Ah ! Makes more sense :slight_smile:

Here’s one way:

Create_List_002.gh (8.9 KB)

That’s perfect thank you!