Split Tree - Mask - Select all item from a specific item

Hi,

I Would like to select all item onward from a given number.
e.g. simpel example:

{0} [2 to -1]

I would like to select data within branch {0}, item with in dex >=2 (so in this example 2,3,4,5,6,7)
(I hope that -1 would mean the ‘Last item’ unfortunately this does not work)

Note, it is possible that the numer of items in the list change, and that the data tree is way more complex. This is just a very simpel / generic example.
Any suggestions for a generic solution?

btw I also tested things like
{0} [2 to *]
{0} [2 to ?]
{0} [2 to -1]

Hi @GH-KN ,

I don’t think I would attempt split tree for this operation (though perhaps there is a certain patterned mask I am unaware of)

This can be done by getting the indices of a data tree and then sifting the data to return all indices greater than or equal to 2.

Note in the example there is a -2 included in the results. This is because the index value of -2 in the original data tree is 2, and therefore meets the criteria.

Graph Space:

20230902_Split_Tree_Response_01a.gh (10.8 KB)

1 Like

Hi,
Thanks for your quick reply. :slight_smile:
Unfortunately I am really looking for a ‘mask’ who can do this, because its possible there are ‘multiple masks’ present, all with different item indexes

1 Like

Ahh I understand now, here you go:

You could use concatenate node to create “dynamic” masks.

First number (0) is the parent branch, * returns all data after that provided the index is greater than 2.

20230902_Split_Tree_Response_01c.gh (7.3 KB)

2 Likes

Perfect, thanks!

1 Like

You’re welcome!