Sample Curve cycle

Tell me how to make a cyclic animation? I need the particles to first be gradually distributed along a curve and when the distribution factor is equal to 1, the movement of the particles should continue along this curve. (The curve is closed).

Option Fraction doesn’t suit me.

Hi Ivan,
put a Math - Modulo node between the Math - Add and the Sample Curve node and set the Divider to 1:


The Modulo function returns the reminder of a division. This way the values will repreat in the range from 0 to 1.
For example:

0.0 % 1 = 0.0
0.2 % 1 = 0.2
0.5 % 1 = 0.5
# If the value reaches 1.0 it will loop over again
1.0 % 1 = 0.0
1.2 % 1 = 0.2
1.5 % 1 = 0.5
and so on...

You could also use a Math - Wrap node to wrap the values in a range from 0 to 1.