I have two curves, A and B. Is there a way to find the closet points on the curves: Point on A and Point on B?

I’d like to then snap the curves together at these points by either moving A to B or B to A or meet in the middle, being able to specify blending length for both.

I don’t imagine there is a function for this already, but maybe someone has already scripted something like this? If not, I am going to try to script something and would appreciate any tips.

Thanks,

Sam