Grasshopper

algorithmic modeling for Rhino

Hi Guys,

 

Basically I have a diagrid panel system that I'm trying to get to rotate based on a distance reading from an infrared sensor. So far so good. I've been successful in using the "list item" component to pick specific panels and rotate them along an axis and origin of their centroid, however, I have 48 panels and I do not want 48 list components. How can I get the same affect without listing it 48 times?

 

I've tried pulling a range, series, and domain component and connecting them to the item input on the list item component but no luck even after flattening. 

 

-Hunter

Views: 1277

Attachments:

Replies to This Discussion

I'm not sure that I'm understanding the problem correctly.

 

Chris

I've partially figured it out.

 

I'm trying to isolate each centroid (represented as the points in the above image) and its respective panel so I can use the centers as the origin of an axis to rotate about. I was using the list item component to isolate each panel and center so that the entire grid did not rotate about one point.

 

I've plugged in a DomComp (Domain Components) in between the area component and the list item and it gives me more or less the desired effect.

-Hunter

Maybe like this then?

Chris

Attachments:

Thank you very much for your help Chris. Don't think I would have gotten that otherwise. Branching and merging is my friend now :) Here's the final files. Hook it up to an arduino board and ir sensor through firefly and the distance reading will flip all the panels simultaneously in real time. The same definition will work with a photoresistor, potentiometer, etc.

Attachments:

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