Grasshopper

algorithmic modeling for Rhino

Hi Guys,

I'm just starting with grasshopper, and maybe this is a little out of my league, but i'd like to know if you guys could help.

I'm having a little trouble working with the data in the lists.
Are there easy ways to reorganize the data, for example: I Have a number of points, i'd like to divide them in branches for equals x components.

Also, i have a two lists of points, and i wanted to connect them with lines, but with conditions:

For example: whenever they have the same x values, don't connect them, or while the X value of the end point is greater than the x value of the initial point, run component, if not, don't do it.(i want to connect points in a sequence but don't want to connect the last one back to the first.

Last one! I would love to learn how to use scripting.... I had a some C scripting classes back in college, not sure if it's completely different stuff.

Anyway, If anyone knows any nice tutorials, that would be good enough!

Thank you!

Bruno

Views: 689

Replies to This Discussion

I Have a number of points, i'd like to divide them in branches for equals x components.

You can use [Partition List] for this.

... whenever they have the same x values, don't connect them ...

This is harder to do. In fact it's probably easier to create all lines, then remove the ones that you didn't want. You can use [Cull Pattern] for removing specific items from a list of data, you just have to supply a list of booleans (one for each data item).

Last one! I would love to learn how to use scripting.... I had a some C scripting classes back in college, not sure if it's completely different stuff.

Not completely different. C# and VB.NET are both the latest incarnations of proud and long standing programming language families. If you're already familiar with C, then a lot of things in C# will not come as a big surprise. There are of course a lot of things you need to know, but if you have prior programming experience then there's no reason you won't be able to master either C# or VB.

It doesn't really matter which language you pick. They are almost entirely overlapping in terms of functionality and there are good tools online that will translate C# code into VB code and vice versa. 

--

David Rutten

david@mcneel.com

Thanks David!

I'm still getting familiar with the components, and sometimes the answer is right there!

I'm starting to read the "Grasshopper Primer" book, and things are getting much clearer now.

Anyway, using the Grasshopper Expression interface with the Cull Pattern component, is there a way to "throw in" in the expressions the value of the position of a parameter on the list? For example, i have a list with 20 points, and i wanted to take out the components based on their position on the list.


I realize there is Cull nth, and some others components that would work, but i think i might be more used to making "functions", to get me where i want!

Thanks a lot!

Bruno




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