Grasshopper

algorithmic modeling for Rhino

 

I was asked recently to port a Processing sketch to Grasshopper. If the sketch is not using any special libraries besides geometry and its only a few hundred lines of code it's very easy to do so I decided to also port some of the example files.

 

The GH definitions work very similar to Kangaroo. The boolean toggle must be set to false and the timer component must be enabled to run the animation. To reset the animation disable the timer and switch the boolean toggle to true.

 

Most of the code is ported as it is, but in some cases I added more functionality, like making the algorithm work in 3D.

 

EDIT: By request I also added the definition for this video:

http://www.grasshopper3d.com/video/testing-exploding-words

 


Files

Bounce.gh

Conway.gh

Flocks.gh

Reach.gh

Softbody.gh

Springs.gh

Exploding text.gh

Views: 4784

Replies to This Discussion

sweet...
interesting!
Very exciting! have you played at all with porting grasshopper to processing?

No, since I'm in the field of architecture you usually want to end up having things in some CAD platform so you can generate plans, print, etc.

Awesome!!!!!!!!!!!! It is  so good to get to see some good examples of codes from a pro. I've been trying to code springs for a week now, started with Runge-Kutta, now moved to verlet and got one spring to work, but was having problems with several and their interaction.

Its so cool to see some codes of physical behaviour, very inspiring stuff.

is there a way to convert vb scripts into python? 

Here's one: http://www.developerfusion.com/tools/convert/vb-to-python/

But I doubt the conversion works as well as VB.NET to C#. You will probably have to fix things manually.

THAnks

nice :)

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