Scripts not working correctly on Large Scale Canvas
- September 24, 2024
- 1 reply
- 735 views
So I've attached some txt files of scripts I've written for a project I'm working on. I'm creating digital renders of walls on a 10 pixels : 1 inch ratio. The following scripts get me the dimensions in inches of a selected object and the dimensions in inches of the active artboard. It creates a line and prints text. This works great on a standard canvas. If you hit file>new and change nothing they both work as intended.
I have certain projects have up to 28 walls I need to create digital renders of and so I've made a file template that has a canvas size larger than 20,000 pixels to accomodate. On the larger canvas size, all my scripts are scaled up. My 80 pt font becomes 800 pt, my 6 pt stroke becomes 60 pt, etc.
I found another post that pointed to the large document scale factor being set to 10 instead of the regular scale factor of 1, and that can be seen through "app.activeDocument.scaleFactor". That post can be seen in more depth here.
I'm wondering if there's a way to get my script to work as intended on the large format canvas that keeps my intended scale! Any suggestions would be awesome, thanks! :))
