Finding closest object in array to a given point.
To find the closest item of an array to the given point P, we should sort the list of points based on the distance from -P-. in this sorted list the first item is always closest point. see the video to find out how to setup controller in 3ds MAX to do so.