generative modeling for Rhino
I have a script which after some iteration has to stop. I did it that way:
If run = True then
If desiredIteration > counter then
CALCULATE SMTH
End If
else
CLEAR DATA
Print("END")
End If
But after desired iteration, timer still runs and executes the script so its hard to do anything (cause last iteration which is already calculated, seems to be calculated over and over again(?), making GH to "freeze" for a while (time in which last iteration was calculated))
How to make script to "turn off" after calculating desired iteration (without changing "run" boolean input)???
Tags: timer
Permalink Reply by Mateusz Zwierzycki on February 8, 2012 at 1:16pm It seems that every timer tick script assigns to "A" output a calculated structure (A= something). This structure is quite big (about 100 000 lines) so it takes some time to run. How to avoid that ?
Permalink Reply by Mateusz Zwierzycki on February 8, 2012 at 5:59pm Found a workaround solution : stop the timer after last iteration :D
http://www.grasshopper3d.com/forum/topics/how-to-stop-the-timer-com...
Added by David Stasiuk 6 Comments 16 Likes
Added by stefano 5 Comments 6 Likes
© 2013 Created by Scott Davidson.
Powered by