Cyan guides are always visible, and light blue hides when switching artboards.
I would like to change the script so that it creates a light blue guide instead of cyan. How to do it?
Cyan canvas guides → Light blue artboard guides
Code: Select all
//Select Active Layer
var docRef = app.activeDocument,
activeLayer = docRef.activeLayer;
activeLayerCoordinates = activeLayer.bounds;
function traceGuide(guide) {
var orientation = '';
if(guide === 0 || guide === 2) {
orientation = Direction.VERTICAL;
} else if(guide === 1 || guide === 3) {
orientation = Direction.HORIZONTAL;
}
docRef.guides.add(orientation,activeLayerCoordinates[guide]);
}
// Trace top guide
traceGuide(0);
