• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to set Illustrator's units to mm?

Explorer ,
Oct 27, 2022 Oct 27, 2022

Copy link to clipboard

Copied

My default Illustrators units is mm but after executicng a script the Illustrator's units are set in picas. So that when a new document dialog appears the units are picas there. How to set Illustrators's units back to mm at the end of a script?

The following does't work.

 

var units = 3; //(0 to 6)
app.preferences.setIntegerPreference("rulerType", units);

/*Unit list
0 : point
1 : pica
2 : inch
3 : mm
4 : cm
5 : H/Q
6 : px */

 

p.s. I had managed to do it when `units = 1`

 

TOPICS
Scripting

Views

277

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Oct 27, 2022 Oct 27, 2022

Copy link to clipboard

Copied

LATEST

Document object has a units property of type RulerUnits. You can try setting it to the desired value

-Manan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines