Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I'm trying to bake bojects through a physical trigger (a I2C button linked on an Arduino board) rather than ordinary GH bool command.

I tried with several bake modules (humana, elefront, etc...), however, it ends up creating many copy of the same gemoetry. How can I realize a bake trigger which works only at "click" event and creates only 1 copy of the geometry?

Here attached a previous example of the same problem while creating spheres with leap motion input and bool GH button.

Many thanks,

G.

Views: 373

Attachments:

Replies to This Discussion

Any of the bake components you reference will only bake one copy of the object, at a single click. I suspect the problem is that the arduino interface you are using is sending many "true" values to the bake. 

That may be true. What would you suggest in order to fit this issue?

Hi Gabriele

if you absolutely need to bake the geometry (may I ask, why?) you could keep track of which ID it is assigned. Then, assign this value to the sticky dictionary in Python or to a field in C#/Vb.Net. Before adding your next iteration of the script, you could check the old ID and try to delete it from the document.This is a workaround but it would solve what you are asking.Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service