Complex splitting data Tree - Automation

Hi there,
i cant get any further at the moment.

I have a variable number of blocks which I insert with Elefront.
I managed to give every item on different layers their own branch.
Every block might have a different number of layers and elements per layer!

Now I need of every block just the first branch ({0;0;0}, {0;1;0} and {0;2;0}
I could go with explode tree, but the number of blocks might vary. I want do find an automation.

Any suggestions what trick would do? I hope my images and files are helpful :slight_smile:

Thank you very much!
Jess

blockquestion.gh (12.0 KB) blockquestion.3dm (38.4 KB)

Is this what you are after?


blockquestion_re.gh (16.1 KB)

Or…


blockquestion_rev2.gh (12.0 KB)

Your way is very interessting and I learned a lot analysing it.

Unfortunately it is not working. When I add another list item block to yours, there is some lines of block one, and one of block 3 chosen.
:thinking: maybe my question was not clear enough…

Lets try it a bit more general:
I need to split the first branch of the tree (or the second) and need a way to do so. There will be more blocks than just 3!

Here is a pic which branches I need:

I found what I was looking for :smiley:

Thats the post what helped me:

1 Like

Check this as well.


blockquestion_reV3.gh (17.5 KB)

Thank you very much! That works as well :slight_smile: