2 Replies Latest reply on Jan 16, 2017 11:34 AM by Ballestero

    Centimeters Selection


      Hello, i have this javascript code:


      app.preferences.rulerUnits = Units.CM



      var doc = app.activeDocument;

      var X = 200

      var Y = doc.height



      doc.selection.select(Array (Array(0,0), Array(X,0), Array(X,Y), Array(0,Y)), SelectionType.REPLACE, 0, false);




      it´s suposed to make a rectangular selection of 200cm x document height (490cm), instead of that, it makes a 200PX x 490PX selection.


      How can i set the selection parameters in Centimeters?



      Screen Shot 2017-01-16 at 11.20.12.png