How I do more than 1000 sides polygon in illustrator?
Allo
I study Sun O. For this study I do polygons with thousands millions billions or more dimensions or lines.
illustrator has limit of 1000 sides. How I do polygons with more sides?
🌞
Allo
I study Sun O. For this study I do polygons with thousands millions billions or more dimensions or lines.
illustrator has limit of 1000 sides. How I do polygons with more sides?
🌞
I googled this:
adobe illustrator polygon with more than 1000 sides script
and it created a script for me that worked in my quick tests. (I did not count the number of sides but it was a lot!) I’ve copied it below in case you get different results.
Save as [filename].jsx and run with File>Scripts>Other Scripts.
#target illustrator
function createManySidedPolygon() {
if (app.documents.length === 0) {
alert("Please open a document first!");
return;
}
// Prompt for number of sides and radius
var numSides = parseInt(prompt("Enter number of sides (e.g., 1500):", "1500"));
var radius = parseFloat(prompt("Enter radius in points (e.g., 200):", "200"));
if (isNaN(numSides) || numSides < 3 || isNaN(radius) || radius <= 0) {
alert("Invalid input.");
return;
}
var doc = app.activeDocument;
var center = [doc.views[0].centerPoint[0], doc.views[0].centerPoint[1]];
var pathItem = doc.pathItems.add();
var points = [];
for (var i = 0; i < numSides; i++) {
var angle = (2 * Math.PI * i) / numSides;
var x = center[0] + radius * Math.cos(angle);
var y = center[1] + radius * Math.sin(angle);
points.push([x, y]);
}
for (var j = 0; j < points.length; j++) {
var p = pathItem.pathPoints.add();
p.anchor = points[j];
p.leftDirection = points[j];
p.rightDirection = points[j];
p.pointType = PointType.CORNER;
}
// Close the path
pathItem.closed = true;
pathItem.stroked = true;
pathItem.filled = false;
}
createManySidedPolygon();
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.