Grasshopper

algorithmic modeling for Rhino

hi, 

i have a list of paths: 

{0;0}
{3;0}
{3;1}
{5;0}

along with a corresponding list of data to put into these branches:

6;4;4
4;6;1
5;5;5
4;8;0

how is it possible to create a data-tree featuring only the given paths using components from GH0.7 ? i didn't find one for that.

best, heinz.


Views: 437

Replies to This Discussion

Hi Heinz,

I don't think this can be done without scripting. You might try and flatten the individual list, as the flatten component allows you to set the path, but you'd have to repeat this for all 4 lists.

It's fairly trivial via scripting though...

--
David Rutten
david@mcneel.com
Poprad, Slovakia
hi david, thanks for the quick reply. i am in fact nearly done with the scripting, just wanted to see if this was possible without doing so.

best, heinz.
I *think* it can still be done without scripting (if anyone is still interested) but I don't quite get what you're trying to do...

Combine data from two specific paths? What path name should the merged data have?
hey taz,

always interested, for sure ;)

i want to create paths, not merge existing ones. the 'list of paths' described above is just a list of strings, these paths shall be created and filled with data from the other list.

best, h.
Heinz,

I don't think I can create empty addresses, but I used 2 non-intersecting lines to generate a branch and then reassigned names.

Not pretty, but works in a pinch since the < null > entries can be cleaned out later.

thanks taz, you rock ;)

best, heinz.

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