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.

Python K2 development

I've written a sort of iteration-based solver for grasshopper in python, and am now interested in reimplementing using Kangaroo (2) as it seems more advanced and flexible at this sort of thing. I'm running into a couple basic issues getting started.

  • How do I debug it? As the python code is providing GoalObjects to the K2 solver, which then turns around and calls their methods, any errors in that code don't get spit out when something goes wrong. Is there a way to get debug output from Kangaroo regarding python instances it was passed?
  • When some computation must be made on each particle, and that data is to be used by multiple goals, is there a way for those goals to share it? Previously I'd been passing around custom class instances as 'particles', rather than the rhino geometry itself.

Thanks in advance for any help, and for all your work on this project.

Load Previous Replies