Assume you want to draw a shape like this with Adobe Illustrator.
You may think it's troublesome to connect the side lines smoothly with ovals.
This is a HTML5 extension for Adobe Illustrator CC that it can be a relief in such case.
It moves the selected end points of the foreground open path to the nearest point on the other selected paths.
How To Use : Select paths (anchor points to glue and the segments to glue to) and hit Run button.
You can set 3 optional values by editing the script.
mode "nearest" : moves the selected end points of the foreground open path(s) to its anchor point's nearest point on the other selected segments.
The handle is rotated to the tangent's angle at the point.
mode "angle" : moves the selected end point of the foreground open path(s) to its inner handle's nearest tangent point on the other selected paths.
If the segment is straight, (and the handle of selected point is parallel to it), selected end point is moved to its nearest point on it.
"multi" checkbox : If checked, it moves all the open path in the selection. Otherwise, it moves only the foreground open path.
If checked and all the selected paths are open path, the last (most background) path is treated as "the other path".
"add anchor" checkbox : If checked, it adds an anchor point at the point on the path that the selected anchor moved to.
"Undo" button performs undo. I placed this button because the keyboard-event is caught by panel and doesn't reach to application during the panel activated.
After undo, all the anchor points are selected. So "Run - Undo - Run" sequence can cause an unexpected result.
Note 1: Works only on Illustrator CC (or later?)
Note 2: A warning dialog will appear during installation since the embedded certificate is self-signed. Continue installation if you trust me :)
The envisioned usage of this extension is, so to speak, drawing roughly and snapping tight with easy action. So please don't use this for the purpose like accurate measuring of the nearest point.
download: handleGlue 1.1.3 / 2013.12.10 The link is the description page on Adobe Exchange. You can install it from Adobe Exchange panel under Windows menu of AiCC / modified to remove outside handles in "angle" mode. fixed typo in messages.
Distributed under the MIT License.
See the license notice during installation for details.