Grasshopper

algorithmic modeling for Rhino

Individually Control the rotation of an unknown amount of boxes (or sets of boxes)?

So I am trying to control the rotation of an unknown number of boxes individually.  The catch is that I want grasshopper to remember what angle of rotation each box is at.  I was hoping that there is someway of using a number slider to go through the list of boxes and select them individually.  Then I want to be able to adjust the rotation angle, go back to the slider, select a new box and change it's rotation angle without messing up the angle I had chosen for the previous box.  I know that I could just break up my sets into their own individual lists that then each get their own individual lines in the definition...but that would just be such a huge definition that I was hoping for something a little cleaner...not to mention that I am not sure on how many boxes (or sets of boxes) I'll end up with at the end...so that method could potentially become just too large to effectively manage.

Is it possible to do this using grasshopper components?  Or do I need to be writing a vb script (wich I don't know how to do)?  Or would the best way be to control it through an reading and writing to an excel sheet (and if this is the case, can anyone recommend a really great tutorial for grasshopper/excel communication?)?

Thanks

Views: 195

Replies to This Discussion

The easiest way to control this would definitely be to use Excel and modify the rotation values directly from within Excel. Having GH writing and reading the values is going to cause more issues than its probably worth.

The easiest way to read Excel files would be through gHowl, which is a collection of interop componets. You can check out the post below for more info, but just send a request to gHowlcomponents[at]gmail[dot]com and we'll get you set up. We've got some example files that come along with it, but I've also got an example that I've cooked up for your specific case that I'll send along as well.

http://www.grasshopper3d.com/forum/topics/ghowl-interoperability

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