4 Replies Latest reply on Sep 7, 2010 1:42 AM by Marijan Tompa [tomaxxi]

    Reset ruler origin

    paon.m-U2NuyY

      Hi,

      I'm writing a script in javascript who have to return the position of every box of a indd document. To do this stuff i have to reset the ruler origin in order to get a unique coordinate system, because users manually change the ruler origin as they like. In Indesign client it's simple: you have to set "ruler on spine" and automatically the origin is set in the top-left corner and you can't change it. I've try to do the same thing in my script :

       

      app.viewPreferences.rulerOrigin = RulerOrigin.SPINE_ORIGIN;
      theDocument.viewPreferences.rulerOrigin = RulerOrigin.SPINE_ORIGIN;

       

      but it doesn't work. The ruler origin don't change.

      I'm doing something wrong or there is another method to obtain what i want?

       

      Thank you in advance.

       

      Massimo