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

Documents.add() bottom-left instead of top-left

New Here ,
May 25, 2017 May 25, 2017

Copy link to clipboard

Copied

I'm writing a script for Adobe Illustrator CC and when I call documents.add(), [0,0] is at bottom left. When I create a new document using Illustrator, [0,0] is at top left.

Is there any way to set to top-left while creating a new document in a script?

Thank you.

TOPICS
Scripting

Views

488

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

correct answers 1 Correct answer

Enthusiast , May 26, 2017 May 26, 2017

Hi, please try:

var d = app.documents.add();

d.rulerOrigin = [0, d.height];

Votes

Translate

Translate
Adobe
Community Expert ,
May 25, 2017 May 25, 2017

Copy link to clipboard

Copied

If you are writing Illustrator scripts wanted to introduce you to this Adobe forum.

Illustrator Scripting

Good luck with your script!

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
May 25, 2017 May 25, 2017

Copy link to clipboard

Copied

Moving to Illustrator Scripting​ for further assistance.

Regards,

Om

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
Enthusiast ,
May 26, 2017 May 26, 2017

Copy link to clipboard

Copied

Hi, please try:

var d = app.documents.add();

d.rulerOrigin = [0, d.height];

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
New Here ,
May 30, 2017 May 30, 2017

Copy link to clipboard

Copied

LATEST

It works, thank you.

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