Type a layout, get the guides. Guides reads a simple line like 10mm | 3x(auto | 5mm |) | auto | 10mm and draws the columns, rows, gutters and margins on one artboard or all of them, in any units, as guides or as coloured lines.
See it in the shop · Version 0.3.5 · Needs PowerScripts 3.8.32 or later
Open the PowerScripts panel (Window > Extensions > PowerScripts) and choose Guides from the Tools scripts. The script has two tabs: Guides and Examples.
Three equal columns with 10 mm margins and 5 mm gutters:
| 10mm | 2x(auto | 5mm |) auto | 10mm |Not sure where to start? Double click any example on the Examples tab to try it.
A layout is a list of sizes with a bar | wherever you want a guide.
10mm, 1.5cm, 2in (or 2inch or 2"), 24pt. Mix units as you like.| 10mm | 95mm | also puts guides on the edges of the artboard. Leave them off for guides only between the sizes.auto: a column that shares out whatever space is left. Three autos make three equal columns.20% of the width (or height).3x( ... ) repeats everything in the brackets 3 times, for example 0.5cm | 3x(| auto | 0.5cm ).autox( ... ): repeats the brackets as many times as will fit, for example 25mm | autox(|10mm|) | 25mm for as many 10 mm cells as fit between 25 mm margins.|cmyk:100,0,100,0| or |rgb:255,0,0|.|none|: leave that guide out.If there's a mistake in the list, the panel tells you what's wrong (for example “Two | with nothing between them”) and nothing is drawn.
auto, stretch or shrink every size so it fills the width exactly. Untick to keep the sizes exactly as typed.The same options for the rows: Vertical Guides, Align (Top, Center, Bottom), Use fixed height, Scale to fit height and Resize Artboard height plus.
12mm.| 3x(auto | 5mm |) auto | for four columns with 5 mm gutters.| 6x(auto | 5mm |) auto | for seven rows.| 60mm |cmyk:100,0,0,0| 40mm |cmyk:100,0,0,0| 60mm |.auto repeat (such as autox( )) is allowed in a list, and a repeat that uses auto as its count can't have auto inside the brackets.