Created
January 21, 2017 03:01
-
-
Save shspage/fb2643c1e83ffc64b7c04a1fded8f75b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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