Runoff Analysis with Kangaroo_Line Component Failing After Script Update

Hello,
I’ve been learning rainfall simulation over a terrain surface using Kangaroo. The setup includes a surface [terrain], with particles (raindrops) moving across [Slope, Load]. Everything was working fair, particles are moving as expected, and I’m using ‘Cloud Display’ to visualize them.

Now, I’m trying to animate the motion trails of these raindrops by connecting their previous and current positions using the ‘Line’ component. This used to work before, but after a few script changes, the ‘Line’ component has gone red and throws:

“Data conversion failed from Integer to Point”, I assume for both inputs.

I think somewhere an index (integer) is mistakenly being passed instead of a point, but I can’t pin down where. I’ve tried panels to debug, but just am unable to figure out.

I’ve attached a full screenshot of the definition the issue is in the green group, top right (the red ‘Line’ component). Would be super grateful if someone could take a look and guide me on what might be going wrong or how to cleanly set this up again.

Thank you so much in advance!


Yellow [Animation trigger], Red [The line component].
I’ve internalised the essential components.

250417Runoff Simulation_Request.gh (538.7 KB)

1 Like

The data recorder is pluggedd into the iterations output which does not make sense if you want to record the points.

I would suggest to use a Show component to transfer the points through the solver. With the bouncy solver you need to unflatten the output.

The lines are now computed…

250417Runoff Simulation_Request.gh (253.4 KB)

1 Like

Thanks a ton for helping me out! I’m very new to Grasshopper and am still learning, glad you’ve taken your time to explain what went wrong as well!

1 Like