Answered
How do you make a circle that is divided into 300 pieces of cake of equal size?
Can someone explain to me which steps it need?
Can someone explain to me which steps it need?
You can try this script.
var d = app.activeDocument.artboards[0].artboardRect;
var paths = app.activeDocument.pathItems;
var circle1 = paths.ellipse(d[3]/2+250, d[2]/2-250, 500, 500);
var polygon1 = paths.polygon(d[2]/2, d[3]/2, 250, 300);
var points1 = polygon1.pathPoints;
for (var i = 0; i < points1.length/2; i++) {
var line1 = paths.add();
var points2 = [points1[i].anchor, points1[i+150].anchor];
line1.setEntirePath(points2);
}
polygon1.remove();Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.