Skip to content

Instantly share code, notes, and snippets.

@shspage
Created January 21, 2017 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shspage/fb2643c1e83ffc64b7c04a1fded8f75b to your computer and use it in GitHub Desktop.
Save shspage/fb2643c1e83ffc64b7c04a1fded8f75b to your computer and use it in GitHub Desktop.
// adobe illustrator javascript: test max length of pathPoints
try{
var p1 = activeDocument.activeLayer.pathItems.add();
for(var i = 0; i < 32000; i++){
p1.pathPoints.add();
}
alert("ok(p1):" + p1.pathPoints.length);
var p2 = activeDocument.activeLayer.pathItems.add();
for(var i = 0; i < 32001; i++){
p2.pathPoints.add();
}
alert("ok(p2):" + p2.pathPoints.length);
} catch(e) {
alert("error:" + e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment