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.
Hi, please try:
var d = app.documents.add();
d.rulerOrigin = [0, d.height];
Copy link to clipboard
Copied
If you are writing Illustrator scripts wanted to introduce you to this Adobe forum.
Good luck with your script!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi, please try:
var d = app.documents.add();
d.rulerOrigin = [0, d.height];
Copy link to clipboard
Copied
It works, thank you.