Script for Adobe Illustrator
Latest update 1/10/2022, version 2.9
The script automates adding grommet marks (dots) to artwork, as guides to finishing operators of where to add grommets to banners.
- Create marks along top, bottom, left, and/or right
- Add a specific number of marks or preferred spacing
- Choose layer for marks, or create it
- Specify mark size, swatch, and overprint
How to use the script
The interface has three sections outlined below. Set options as desired and click OK to begin. Marks are added to all artboards in the active document (the document currently open and the top-most window if multiple documents are open).
Section 1: Edges on which to add marks
Top/Bottom/Left/Right — enable the desired edges to add marks. At least one edge must be enabled. Top and Left have additional options that determine position, described below. Bottom and Right, if enabled, use the same values as Top and Left, but mirrored on the bottom or right.
Center first mark at X/Y — the distance from the left (X) and top (Y) of the artboard where marks begin. For Top/Bottom, the last mark will be the same X distance from the opposing edge. For Left/Right, the last mark will be the same Y distance from the opposing edge.
Distribute: Number of marks — enable and enter the number of marks to add, which are spaced equally across or down the selected edge.
Distribute: Preferred spacing — enable and enter the desired distance between marks. Depending on the starting position and dimensions of the artboard, the script calculates the number of marks, spaced equally, that results in the closest value to the desired spacing.
Section 2: Options
Measurement units — the measurement units used for all values except stroke weight (always points). Select the desired units from the drop-down list. When units change, values are converted to the equivalent value using the new units.
Mark diameter — the desired size of each mark.
Mark layer — select the layer to which marks are added. The script looks for a layer named Grommet Marks, and selects it if the layer exists. If not, the script offers to create it, and includes in the list the choice [Create 'Grommet Marks'], which creates a new layer of the name atop all other layers. Or choose any other layer.
Mark swatch — the swatch used to color the marks. The script looks for a swatch named Grommet Marks, and selects it if the swatch exists. If not, the script offers to create it, and includes in the list the choice [Create 'Grommet Marks'], which creates a new swatch of the name colored 100% magenta. Or choose any other swatch.
Fill — enable to assign the selected swatch to each mark’s fill color.
Stroke — enable to assign the selected swatch to each mark’s stroke color. Enter the desired weight (width) of the stroke in points.
Overprint — when enabled, each mark’s fill and stroke are set to overprint.
Section 3: Settings
The current options may be saved and restored later. Select from the Load drop-down list to choose saved settings, and the current options are updated. Click the Delete button, and the saved settings selected in the Load drop-down list are permanently removed. Click the Save button, provide a name for the settings, and the current options are preserved. If the name already exists, the user may choose to replace the saved settings. Or click the checkbox Replace settings, and choose the settings to replace.
The script provides default saved settings named [Default]. These settings cannot be deleted but may be updated to the current values. Save settings, click the checkbox Replace settings, and choose [Default].
License details included in download
For help installing scripts, see How to Install and Use Scripts in Adobe Creative Cloud Applications.
Also available for hire to program custom solutions. Contact William for more information.
IMPORTANT: by downloading any of the scripts on this page you agree that the software is provided without any warranty, express or implied. USE AT YOUR OWN RISK. Always make backups of important data.