2 Replies Latest reply on Jul 29, 2017 4:24 AM by ian-barber

    How To Get Active Document Bit Depth

    ian-barber Level 1

      Can someone demonstrate with Javascript how I can run a block of code depending on what the active document bit depth is

       

      If activeDocument.bitsPerChannel is 16 then (run this code)

       

      if activeDocument.bitsPerChannel is 8 then (run this code)

       

      if activeDocument.bitsPerChannel is not any of above (run this code)

       

      Ian