Grasshopper

algorithmic modeling for Rhino

I have a relative simple problem (I think) and I have been looking at this forum but not been able to find answer.

I have a slider which controls a simulation. The slider runs from 1 to 8760 (the amount of hours per year). For every hour, I will get another result. 

Would it be possible to automate the slider so that it starts at 1 and runs through all the numbers until it reaches 8760? I tried it with Galapagos but haven't managed yet. 

Any help is appreciated! 

/Jouri

Views: 9969

Replies to This Discussion

There's an Animate option in the slider menu, it's not exactly what you're after, but it's a start. 

Another option would be to use the Timer object to keep firing events, then collect these events (for example with a Data Recorder) and count them all. That's also a way to run a simulation over time.

--

David Rutten

david@mcneel.com

Tirol, Austria

There is also another method to execute a series depending on exported output, which is much like David´s second solution.

Thanks for your comments. I solved it now with the 'GENERATION' plugins counter function. In that way, the slider increases with 1 unit every 1 second. 

Good.

Just for the record, this would be the method suggested with native components.

@David: Couldn´t the Timer be able to be connected to a slider / boolean toggle / button / knob / scroller / valuelist  right away?

Nice way for counting but I couldn't understand why to subtract 2 from the list length?

Hello,

I know this is a very old post and people might already know this solution by now.. but I was just trying to find the solution to this same problem and couldn't find it anywhere on this forum. I eventually figured it out using the counter element.

I hope this helps other amateurs like me :)

Hi,

Im also new to grasshopper,

I am unable to find the counter with the optional  counter domain

Hey,

You will need to download the firefly plugin from here.

http://www.food4rhino.com/app/firefly

You will then find the counter component.

You wouldn't know how to invert the counter I suppose?

I.E make it count down...

I can get it to count down, but I want it to start at a number and count down from there.

Cheers

StartNumber - count.

100 - 0 = 100

100 - 1 = 99

100 - 2 = 98

...

Sorry, could you elaborate?

This is how it is set up at the moment.

With a slider or a panel set a Start number.

Use the subtraction component to subtract the start number with the counter output.
Attached you have a sample using the Peacock timer.

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