Separate 2 Trees in the same list?

Hello
Is there a component or plugin to separate two trees in the same list?
i use this method but i want know if there is a more simple way
nb: number of branches is not always equal.

trees.gh (21.1 KB)

1 Like

There is a component named Divide Branchesin treesloth plugin, but not sure this is gonna work for your purpose…

1 Like

Thank you, yes it work but need the same method using match text.

1 Like

Split Tree is the solution

4 Likes

this split tree does not work for more than 2 branches on the tree is there any other options …

Split Tree

Split a data tree into two parts using path masks.

1 Like


Split Tree.gh (10.1 KB)

i was trying to split the tree into 4 branches like this

Regards
rajeev

Here’s one way.

Edit: just noticed that Divide Branches component is from TreeSloth plug-in.

Split_Tree_re.gh (18.6 KB)

Kevin

2 Likes

@kev.r Thanks great solution !

Native solution is here using Replace Paths.
And you can use my Unentwine if you need the subtrees.

Split_Tree_re.gh (19.7 KB)

3 Likes

@magicteddy nice i got one native solution to this i just loved your magic plugin…

1 Like

Maybe this is a way

2 Likes

This would fail for variable tree branches, but if you connect the C output of the first Partition List to the S input of the third, it would work properly I think.

2 Likes