Curve to Points
and Resample Curve
nodes at Length mode will round the provided value down so there's no small piece of curve left at the end. From the user manual:
Length: Sample each spline by splitting it into segments with specified length. The length will be rounded down so that a whole number of samples will fit in each input spline. To counteract jumping when the length of the spline changes, the Trim Curve node can be used with a multiple of this length.
Here's a setup where you can get the Curve Length
, Divide
that by the desired length (the length of your instances) and Round
down the result to see how many instances would fit the curve we have. Then you Trim Curve
to the exact length before resampling it:
This should work, but it seems to fail at some particular values. I'm not sure why that is—if I'm missing something or if it's a bug:
Using a Subdivide Curve
instead of Curve to Mesh
or Resample Curve
seems to work without any hitches, if that suits you: