algorithmic modeling for Rhino
This must be a simple thing I'm overthinking (underthinking?) but I have a list of object withe multiple paths, and I want to just output a list of the paths of all the items.
For example:
item = 5 path = 0;0
item = 3 path = 0;0
item = 25 path = 0;1
item = 46 path = 0;2
item = 7 path = 0;3
would output
0;0
0;0
0;1
0;2
0;3
I'm sure there is a way to do this, especially with the new Tree statistics component, but I couldn't think of a super straightforward way - so I defer to the grasshopper community.
Anyone have a preferred method for this task?
Thanks
Brian
Tags:
HDT Utilities TreeFrog has a component for this, called "path description." It returns the paths in a structure that matches the original data - so in your above example you'd get {0;0} and {0;0} contained in path {0;0} - but it would be simple enough to flatten the result if you don't need it to stay structured that way. Not TOO hard to do with tree statistics and duplicate data (and replace branches if you need the output structured) - but the path description component makes it fast and easy.
Ahhh, brain fart.
I was toying with duplicate data and param viewer but i forgot that list length keeps the branch structure and would let you duplicate the data the right number of times on each branch.
Thanks!
-Brian
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by