Parameterize two curves to match at control points

I am playing with doing fly-through animations with Grasshopper. It works quite well. I have a camera curve and a target curve. Each curve is interpolated through the same number of points. These points define key frames. For both curves:

  • At parameter 0, Evaluate Curve (Eval) should return the first point.

  • At parameter 1, it should return the second point.

  • At parameter 2, the third point.

  • And so on.

Example:


2025-06-10+02_parameterize.gh (14.7 KB)

How to do that?

Are you literally referring to the curve’s control points or do you mean the point at the parameter (or the point corresponding to your key frame point)? Two different things - even if you interpolate the key frame points to form your curve, if you then extract its actual control points the count will differ.

See here:
2025-06-09+02_parameterize.gh (14.1 KB)




1 Like

Good point, and my mistake! Yeah, that’s different. I refer to the points that the curves were built from. I call these points “key frame points”.

I edited my original post now, hopefully making it more clear what I am looking for.

1 Like

Did you see if this helps?

use Uniform Knots not Chordlength.
2025-06-09+02_parameterize_uniformKnots_jvs.gh (16.9 KB)
(and Yes, that does change the curves shape. necessarily)

…and If you dont like the shape uniform knots create…
you have to “translate” the parameter from one curve to be used on the other. …
for instance with some geometry used as a graph-mapper…
2025-06-09+02_parameterize_geometricGraphmapper.gh (19.4 KB)

Thanks, that makes it super simple, no need to even reparameterize:


2025-06-11+02_parameterize.gh (11.0 KB)

That’s a neat solution, thank you!