Can somone look at this script and help?
Can somone look at this code and tell me why its not drawing the black .25" circles as expected? My goal with this script is to let the user choose either top and bottom cutter marks (for a digital flatbed Colex cuttert) and draw the circles .35: in diameter and place them .25" frin from the edge pof the artboard if the user chooses top/bottom it will draw 3 evenly spaced circles evenly distributed across the top and 4 across the bottom. Same goes if they choos left and right it draws them 3 on left and 4 on right? Im stuck. The script seems to run but draws nothing in the document:
var y = y2;
var ellipse = doc.pathItems.ellipse(x, y, diameter, diameter);
ellipse.filled = true;
ellipse.fillColor = new RGBColor();
ellipse.fillColor.red = 0;
ellipse.fillColor.green = 0;
ellipse.fillColor.blue = 0;
ellipse.stroked = false;
}
}
// Close the UI panel when the Cancel button is clicked
cancelButton.onClick = function() {
panel.close();
}
