5 Replies Latest reply on Jun 1, 2016 5:56 AM by c.pfaffenbichler

    verify if a sample point exists

    Level 1

      The script below is useful for selection

      Now I would like the same to see if the sample point exists

      thank you

       

       

      You can do this even with the sample point

       

      1. #target photoshop 
      2. var doc = activeDocument; 
      3. try
      4.      doc.selection.copy() 
      5.      //code here if there is something in the selection 
      6.      } 
      7. catch(e){ 
      8.      //code here for if the selection is empty 
      9.      }