Grasshopper

algorithmic modeling for Rhino

Say I have a .CSV file with 2 columns of data - i.e. each line has 2 numbers separated by a comma - and I read this into GH using the Read File component, I then have a list {X,Y}

How do I refer to the values from each column of data?

For example if I want all values in column one to be sphere radii, what do I have to do to get a list of just {X}

Example... from this

2,1

2.5,1

2.6,1

2.3,-1

2.4,-1

to this...

2

2.5

2.6

2.3

2.4

Views: 281

Replies to This Discussion

[Text Split] using a comma as the delimiter and then [List Item] or you can [Flip Matrix] and get all the values on one path = Radii and on the other path as whatever

Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service