Select all DataTree branches by first path number

unhandled
#1

Hi,

Is there a way to select all DataTree branches in C# by first path number in the same way as split mask component?

For instance, below I type number one and it selects two branches that begin with number one.
I am searching for equivalent methond in C#.

Question.gh (15.5 KB)

#2

Hi Petras,

have a look at this discussion:

#3

It is different question.
Is it possible to select branches without looping?

Just like you would do for arrays.
I.e int array;

And then take elements by id array[1]