9 Replies Latest reply on May 27, 2016 7:24 PM by Chuck Uebele

    How to get or set units?!

    photogyulai Level 1

      Hey Guys!


      I have some extensions that measure the width and height...

      but if the

      Edit menu>> preferences >> units are in centimeter

      the result of the measurement will be faaaarrr different than in pixels


      43 in cm

      500000 in pixels...


      is there any option for getting the units type or setting it permanently or temporarly?!?


      I found this one but it didnt do anything:

      app.scriptPreference.measurementUnit = app.MeasurementUnits.PIXELS;



      any help would be appreciated!!