Grasshopper

algorithmic modeling for Rhino

I haven't yet fully understood Kangaroo's Settings. Can I configure Kangaroo in such a way that it just outputs to "GeometryOut" when new data is available? Right now it outputs constantly and a whole bunch of components calculate and draw the same stuff over and over again.

Or could someone perhaps tell me what a small script could look like that makes the components (connected to GeometryOut) not draw/work on the same stuff again and again?

I failed writing one on my own. So even when not assigning a value to the output GH seems to take over and the next component is pinged with the last value. But I am not sure. At least I failed to write it.

Views: 405

Replies to This Discussion

The data dam is very useful if you have a lot of heavy operation occurring downstream from your kangaroo simulation. Just feed your GeometryOut into it, and only activate it when your simulation has reached a satisfactory state of resolution.

Alternatively, if you have a good idea of how many iterations your kangaroo simulation needs to run in order for it to resolve itself, you can use kangaroo settings to significantly increase the "SubIterations" that occur between redraws, and then feed a list of two values (True/False) into SimulationReset...It will produce two values for each of your input geometries...one in the initial state, and one post-simulation...you just need to split your list. If you post your file, it might be easier to show you how to set it up.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service