7 Replies Latest reply on Jul 23, 2017 1:40 PM by alextul

    Light blue artboard guides – script for Adobe Photoshop CC 2017

    alextul

      The script that you see creates a cyan guide at the left edge of the layer (or document).

      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

       

      //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);
      

       

      https://static1.squarespace.com/static/54347ad9e4b052cb7a7eed93/t/565bfd91e4b0509baa0015e3/1448869267384/

       

      Guides.png