Var d0 = (pointA.anchor - pointB.anchor) / 2 Var points = (item.pathPoints) įor (var j = 0 j = Math.sqrt(Math.pow(pointA.anchor - pointB.anchor, 2) Math.pow(pointA.anchor - pointB.anchor, 2))) If (!(tolerance >= 0)) return "JOIN PATHS WITH OVERLAPPING POINTS\n\nABORT: The overlap tolerance must be a number of points equal to or larger than 0." If (tolerance = null) return "JOIN PATHS WITH OVERLAPPING POINTS\n\nABORT: Script execution cancelled." Var tolerance = prompt("JOIN PATHS WITH OVERLAPPING POINTS\n\nEnter overlap tolerance (in points):", 0) If ( = 0) return "JOIN PATHS WITH OVERLAPPING POINTS\n\nABORT: There is no selection." "Press OK, select an overlap tolerance (in points),\n" "For overlapping paths an overlap tolerance applies.\n\n\n" "Groups are supported, compound paths are not.\n" Open paths with overlapping points are joined.\n\n" Split points within paths are merged.\n" "This script is distributed under the MIT License.\n" This script is distributed under the MIT License. Select File/Scripts/Other Script, and open the script.In illustrator, select the paths (or groups) you want to clean up.js file (for example join_paths_with_overlapping_points.js). Copy the code below to a text editor and save it as a.Groups are supported, compound paths are not.įor overlapping paths an overlap tolerance applies. Open paths with overlapping points are joined.This script has been updated with some new features.
0 Comments
Leave a Reply. |