Grasshopper

algorithmic modeling for Rhino

Hi there,

I was wondering if I could somehow get a boolean toggle to change every x seconds, is it possible? I've attached an image. It obviously doesn't work the way I did it, any suggestions? I need to automatically bake an object every certain amount of time.

Views: 5360

Replies to This Discussion

If you keep the toggle at True (so the first time the bake is manual), then doesn't it bake the object every 2 seconds?

no, it doesn't, any other suggestion?

I just checked my solution, the timer needs to be connected to the bake component, not the toggle.

ooohh sorry, I missed it the first time, it works perfectly, thanks a lot!

No problemo, I missed it the first time as well :)

I use Kangaroo's [Counter] with the [Timer] and then [Modulus] the result to get an odd and even 010101 pattern.

Thanks Danny, I did not know that 1 and 0 is the same as false and true in this case.

In GH, True is anything but 0

Alternatively, you can use a script component to create a toggle:

It doesn't in my case. When I connect 10 sec timer to bake component(in my case, save component but I assume they work practically the same) and turn on boolean to true, it bakes as fast as the computer can, creating numerous duplicates. I want to bake the object every hour but just 1 bake, then turn the boolean off for another hour. Anyone can suggest how to?

Thanks

Any help with this?¿?

I'm trying to get a true with a timer, but only one in a certain time. Like the "data dam" but controlled with a timer, not manually.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service