Using a curve as a magnet.
It’s been a while that someone asked me about using curve as magnets in parametric array, he also sent me a sample code that could return the closest point of the curve to an object. Well, unfortunately I forgot to reply him (or her) but here is a short video explaining how to the curve controller to return the closest point and incorporating the result inside the magnet controller which I’m posting it here.