Grasshopper

algorithmic modeling for Rhino

How to make a VB script step through a for loop based on a time delay?

Any suggestions?

I need to slow down iterating for visual effect.

thx! 

Views: 1099

Replies to This Discussion

that was a non-VB guy's attempt to create a sleep or wait like delay.

Update:

1. Let's narrow the goal of yours  (PS .. still ... I don't get the gist of that game-of-something-or-whatever but that's not the point).

2. Enable this stupidly naive test:

3. Now ... imagine that Paris Hilton plays with that (after reading 123 times the User's Manual). Big Pink ball is affected by Guilio's stuff. But Paris wants the small ball to orbit around the big one with a second "time-control" thingy. And then she wants a third ball to orbit around the second one with a third ... blah blah. Then she wants many balls to orbit around many balls that orbit ... blah blah.

4. Is that sort of nested "timers" chaos your issue?

Attachments:

Peter,

I'm looking forward to spend some time on this this weekend! Thanks for putting up with a beginner scripter that is not even familiar with VB or C# but determined.

With respect to 1. narrowing the goal:

My goals are:

- Have a "Conway game of life" cell generator with some added features. 

Added features:

- two sets of cells each with its own color

- Modify the Conway a cell is born (3 neighbors) with: the new cell color is based on the dominant neighbor.

- New cells of either color can be dynamically added or removed to the existing set of cells based on external rules. I was hoping to use the stateA, stateB inputs for that.

With regards for the iterating issues:

- The VB script should keep iterating to the next state at a visually pleasing interval based on an input timer setting.

- The script should use an initial set of cell states.

- The script should add/remove cells (not use that as an entire new set of cell's rather add/remove from the current state)

- The script outputs the new state that can be used external to display the cells and can be used as a variable to add or remove cells.

After I get the basics going, I plan to add lots of variables to a cell as a game. Strength, shields, etc.That will be fore a phase 2 or 3.

Thanks again for all your help getting to this point!

I'm facing "some" Internet issues right now (meaning no Internet > both office/home rooters/hubs are Kaput = Karma, what else?).

This is send via a borrowed rooter: get a more "compact" arrangement (added some "external" script to indicate the possibilities: the main control times, the slaves ... do things).

More soon (with new rooters).

best, Peter

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