Kangaroo

THIS FORUM IS NO LONGER ACTIVE. PLEASE POST ANY NEW QUESTIONS OR DISCUSSION ON:

https://discourse.mcneel.com/c/grasshopper/kangaroo

The discussions here are preserved for reference, but new questions posted here are likely to go unanswered.

Kangaroo is a Live Physics engine for interactive simulation, optimization and form-finding directly within Grasshopper.

Controlling iterations in Kangaroo

Hello, first post.

I've been trying to figure out  how to control the number of iterations Kangaroo performs. I want to point it at an array of meshes and do one at a time for 1000 iterations each, bake it out and go to the next.

I've looked through the forum posts and google But I've found no way to do it.

Here's what I've tried:

- Using a Repeat component to do a true/false loop as input only resets the engine. It does not increment the iterations. Just alternates the reset.

- The "sequence" component is promising but it seems to output a range of frames simultaneously. I only want the 1000th iteration not 1-1000. 

I notice that the sequence component is just outputting a series of boolean values. One True followed a series of False. Is there a way to capture the 1000th false  value only?

I also noticed that version 0.095 has a "Remote timer controller" feature. (I'm using version 0.096). What is this feature? Can it help?

Thanks for any help,

Josh

  • up

    Danny Boyes

    I also noticed that version 0.095 has a "Remote timer controller" feature.

    This is instead of [Timers] to access it you need to double click the Kangaroo Component.

    There is a Step Button "|>" but probably not what you are after.

    @Daniel I noticed that the "discoverability" of the new Kangaroo Panel is is harder than "obvious" if you added it to the right click context menu and/or the Grasshopper View menu then it might be easier to find. 

    1
    • up

      Daniel Piker

      Hello Josh,

      welcome to the forum.

      Here's one way of doing it. You always need at least 2 frames for the sequence component to work - the first one is there to initialize the simulation. By setting the 'SubIterations' to your desired number of steps, you can control how far the simulation advances in one frame.

      I realize this may not be the most intuitive way of controlling things - I'm trying to come up with a better solution, but it is tricky combining it with the grasshopper data tree system in a way which is both flexible and clear, and any suggestions would be welcome.

      One possibility I was thinking of is a separate Kangaroo component for running simulations without the timer (maybe it can be called 'dead kangaroo' to distinguish it from the 'live' version!).

      If any of the inputs need to vary over the course of the simulation, they could be given a branch per frame (and then there would be no need to have tree input on the Force-objects input of the 'live kangaroo', so I could just auto-flatten there, which could simplify things)... hmm, have to think about this some more

      2
      • up

        Asha

        Hi


        Thank you 


        Just in case if anybody wants to do this by kangaroo2

         rain%20flow%20analysis.gh