Grasshopper

algorithmic modeling for Rhino

Hello everyone,

 

I'm having a problem that I don't know how to solve.

I have a data tree divided in branches and I need to delete the last branch.

Do you have any idea how to do that?

Thanks in advance for your help!

Daniele 

Views: 17019

Replies to This Discussion

Hi,

this would select the last branch no matter the number of path. Right ?

C
Attachments:


Here you go...use a Shift Item with a '-1' and recompose the tree.
Luis

Ps. Come: TO get the last branch, you could also do this:

s and then select the fist one on the list. Reverse the list of path
I just added a Split Tree component that allows you to split a tree using a collection of text masks. It should make stuff like this somewhat easier.


--
David Rutten
david@mcneel.com
Poprad, Slovakia
To Luis,
yep. that s better. Thanks.

To david,
I cannot find this Split Tree component. Is it yet to come or am I somehow missing it ?
Sorry, when I said I just added it I meant I wrote the code for it 2 minutes ago. It will be available in the next release.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
'just', indeed. That sounds like a good one! Thanks
awesome...looking forward to it!
i dont seem to be able to split branch from tree using a path similar to the note above, am i doing something wrong?

Split Tree component, not Tree Branch component. Look for the icon with a tree and a lightning bolt.

--
David Rutten
david@mcneel.com
Seattle, WA
ok thanks a lot david, i am fairly new to grasshopper. i recently realized my mistake but have not found a solution to my problem.

i am trying to randomly select 1 one of the 2 items of every branch in the tree (shown in the previous image's param viewer above).
i attempted to use fx2 component to combine strings and input that into the tree item component.

is there a way to combine strings similar to this?
if not is there a better way to select these items?

Thanks David, this is awesome!

Hi,

And what about splitting a tree in any number of times you need, like having on the "Split Tree" an Output manager with the 'n' separate numbers of splits you want?

Something almost like the "Explode Tree" component, but keeping together the sub-branches of a root like {11;*}

I'm not getting the point to do this in a simple or clean way.. 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service