Grasshopper

algorithmic modeling for Rhino

I have a list with even number of values in it.
I would like to graft that list, but in a way that every 2 branches were "put" on a separate branch.

For example:

input list

{0}

a

b

c

d

e

f

g

h

output list

{0;0}

a

b

{0;1}

c

d

{0;2}

e

f

{0;3}

g

h

Is that possible?

Thank you.

Views: 1327

Replies to This Discussion

http://www.grasshopper3d.com/forum/topics/path-mapper-help-1

{A;B} (i) -> {i\2}

Best Regards

DeDackel

Thank you DeDackel.
I was not aware of neither that component nor that topic.

I can see this path mapper is pretty powerful tool.

Partition List component with the value of 2 in the S input.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thank you for the reply David.
That "Partition List" component is available in 0.9+ version?

I am still using 0.8.0066 version. I read some text in here, if I recall it correctly about pro's and con's and got scared by the 0.9+ version. I do not know if that will be completely different from what I started to learn about grasshopper until now (<0.9)

?

I say update, got to learn whats going to be the new standard, not the past :)

Probably I will.
It's just fresh start still scares me.

its really not all that different, just a few things.

but here is another way

Ingenious !!!

That data matching again:

?

I need to search for some kind of course in data matching. Apart from not knowing some of the components and what they do, this data matching part is bringing me down, a lot.

well in the case of more than 2, with no path mapper or partition then I would probably either use cull nth + weaves or a way similar to this. Partition is really the best though.

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