# Kangaroo - record iterations - Timer with slider

**URL:** <https://discourse.mcneel.com/t/kangaroo-record-iterations-timer-with-slider/51817>\
**Category:** Grasshopper\
**Tags:** kangaroo, iterations\
**Created:** [December 19, 2017, 11:55am UTC](https://discourse.mcneel.com/t/kangaroo-record-iterations-timer-with-slider/51817 "2017-12-19T11:55:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clement.loyer2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement.loyer2/32/73347_2.png) [@clement.loyer2](https://discourse.mcneel.com/u/clement.loyer2)\
**Post date:** [December 19, 2017, 11:55am UTC](https://discourse.mcneel.com/t/kangaroo-record-iterations-timer-with-slider/51817/1 "2017-12-19T11:55:00Z")

</div>

Hello everyone,

Here is my gh file, this is a circle packing demo [171219\_KangarooCPmultiradii\_2.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/3/a/3ae2213a7e50d452bc2a3be8692725f342e6cfe1.gh) (15.1 KB)

So my question is simple, yet I can’t find a solution on the forum. I want to move time with a slider, and move it as I wish, to be able to stop at any point of the packing.

I tried with the “data recorder” component but I want to be able to edit the edit the input data (let’s say size and number of circle) and reset the “data recorder” at the same time. Plus it’s really a heavy process to have the recording process in background.

Thanks !

---

<div class="post-metadata">

**Author:** ![adityajain30120](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/adityajain30120/32/495422_2.png) [@adityajain30120](https://discourse.mcneel.com/u/adityajain30120)\
**Post date:** [April 20, 2020, 10:48pm UTC](https://discourse.mcneel.com/t/kangaroo-record-iterations-timer-with-slider/51817/2 "2020-04-20T22:48:17Z")

</div>

hello,

i had a similar question, i want to move time with a slider somehow inorder to extract the geometry in transition?

---

<div class="post-metadata">

**Author:** ![DanielPiker](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/danielpiker/32/666337_2.png) [@DanielPiker](https://discourse.mcneel.com/u/DanielPiker)\
**Post date:** [April 21, 2020, 1:35pm UTC](https://discourse.mcneel.com/t/kangaroo-record-iterations-timer-with-slider/51817/3 "2020-04-21T13:35:52Z")

</div>

Hi @adityajain30120  
You can use the StepSolver component of Kangaroo. Connect the goals as normal, and attach a slider to the Animate input. Setting this slider to zero resets the simulation, and you can right click it and use the Grasshopper animate function to record a series of images of the Kangaroo iterations which you can then compile into a video or animation.  
This is also better than using screencap software with the regular solver component, as then the capture rate and iteration rate won’t sync up exactly, which can lead to stuttering frames.

---

<div class="post-metadata">

**Author:** ![adityajain30120](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/adityajain30120/32/495422_2.png) [@adityajain30120](https://discourse.mcneel.com/u/adityajain30120)\
**Post date:** [April 29, 2020, 8:29pm UTC](https://discourse.mcneel.com/t/kangaroo-record-iterations-timer-with-slider/51817/4 "2020-04-29T20:29:53Z")

</div>

Thanks Daniel, it helped me.  
There is another issue I was facing while using “collide component” as i still have intersections throughout the simulation. I tried culling a few control points to recreate a non intersecting curve, but it doesn’t help always. I have uploaded the .gh file.  
@DanielPiker  
Thanks and Regards

- Aditya

[Growth using Kangaroo.gh](https://discourse.mcneel.com/uploads/short-url/qHiiIrQ7DjFOHKeqYzogvoo82mF.gh) (16.6 KB)

---

<div class="post-metadata">

**Author:** ![DanielPiker](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/danielpiker/32/666337_2.png) [@DanielPiker](https://discourse.mcneel.com/u/DanielPiker)\
**Post date:** [April 30, 2020, 9:00am UTC](https://discourse.mcneel.com/t/kangaroo-record-iterations-timer-with-slider/51817/5 "2020-04-30T09:00:54Z")

</div>

[Growth using Kangaroo\_.gh](https://discourse.mcneel.com/uploads/short-url/gCqMArNfIG7VIY9LhnwwSTyyR74.gh) (17.9 KB)  
With this sort of growth simulation it works much better if the growth is gradual.  
Here I’ve shown how to modify your file so that the growth of the line is controlled by the same slider as the animation.
