algorithmic modeling for Rhino
All,
I am working on a script in the python component that is intended to iterate through a list of months and feed several setup variables for each month to the Geco plugins in an effort to run several consecutive calculations, each time placing the data in a new file.
The loop runs based on what the output shows, however the only data that seams to be sent is that associated with the last iteration in the loop. I have attempted to use a Boolean output from the Geco component as a way to test for the completion of the calculation but I receive an error:
"recursive data stream found, this component depends on itself"
Is there anyway to listen and wait for downstream calculations to complete before continuing on in the loop?
thanks in advance
Joel
Tags:
All,
I attempted to use an event handler to listen for an event (Calc) but as the script component re-initializes each time ANY input variable is changed this is pretty much useless. Is there anyway to "save the state" of the component as it were so that the event handler class would not be reinitialized each time a variable is changed? There must be some logic behind the hoopsnake component that can use here?
thanks again,
Joel
In reality all that crap in my code looks like it can be reduced to the the function that advances the count, as I believe that every component acts as a listener? Awaiting a change?
Any thoughts anyone?
Just as a comment, we discussed about this also on the Rhino.Python forum:
http://python.rhino3d.com/threads/715-Grasshopper-loop-control?p=2788
- Giulio
_______________
giulio@mcneel.com
McNeel Europe
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by