Redistribute points along a line according to proximity to an attractor point

I’m trying to create a grasshopper script that will let me distribute a set number of points along a curve but change the spacing in a gradient-like fashion according to the proximity to an or multiple attractor points. I have a file started that is attempting to do this but it doesn’t seem to be associating with the attractor point and I’m not too familiar with the operations of vb scripts so if there is a way I could learn to do this without the use of that that would also be great.
curvepointsredistribution.ghx (86.7 KB)