I'm animating a curve trim loop. I have splines generated along a main spline that serves as a guide. The generated splines need to be trimmed with an offset based on their indexes. The animation should loop once it reaches the end of the main spline. The problem is that when the Modulo node is added to the setup, the produced loop becomes shorter and faster with every loop.
Essentially I'm trying to loop this:
Any solutions are appreciated. I'm also open to completely different approaches. The important thing is that the loop is independent of the spline length it is generated on, so I can make the spline any length without affecting the speed or offset.