Grasshopper

algorithmic modeling for Rhino

I know this may seem basic...but... 

If i have two lists where the 1st list is a set of unique identifiers, and the second list is a set of values that i want to assign those unique identifiers. How do i get them to be in one list... 

Example: 

List 1: 

1

2

3

4

5

etc....

List 2: 

10.1

11.1

34.5

40

50

etc...

Merged List 

1, 10.1

2,11,1

3,34.5

4,40

5,50 

etc... 

Views: 11349

Replies to This Discussion

Use FlipMatrix on each list

Then use Merge Component

... I think! Post a definition with your lists in so we can have a go or just have a go!

Flatten both lists, weave component, then partition into groups of two would be my guess, be happy to check your file if you wanna post!

like already posted in previous answers

Hi Eric, as I understand it, the TextJoin component is what you want:
The Expression component (with its default expression) could be an alternative.

yeap seems so.

Wow. Thanks all for your help! This is amazing of you. 

I'm going to try a few of these things and see what works, and will let you know.....


EG! 

Both of those methods worked perfectly. I'm still a bit of a noob with data trees, but this is helpful! 


I attached the file for reference. Thank you again for being generally awesome and helpful. 


EG

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service