Copy link to clipboard
Copied
I work a lot with car decals and designs in illustrator. It would help a lot with a script which would calculate the area in square meters for given objects. For now i have to manually calculate and punch the actual numbers on a calculator. Time consuming. Should be easy to extrat this data from the program some how. Does anyone now if it exists a script for this?
I'm not sure I'd trust Word to save actual plain text regardless of what it says.
Either use an actual text editor or go to the URL for the raw text on Git and save the page directly:
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I just saw you in that Git thread Jacob and thought I might find you here.
Copy link to clipboard
Copied
And you did, Doug (late in spotting htis).
Copy link to clipboard
Copied
Looks very promising, but for some reason my illustrator is not allowing me to run this .jsx file. have absolutely no idea why. Running up to date version of illustrator. Older scripts seems to be working but this "newer" file is not available to click. Just greyed out. Any idea why?
Copy link to clipboard
Copied
Seems to run fine here on AI 27.5, Windows 11.
What are the exact steps you're taking to run it?
Copy link to clipboard
Copied
I am saving the file in a "script folder" on my desktop with the file extenscion as described. In illustrator -
File - Scripts - other Scripts and navigating to the right folder on my desktop. This new script is visible but not available. As noted earlier older scripts are available.
Copy link to clipboard
Copied
MacOS Monterey apple M1 - AI 27,5
Copy link to clipboard
Copied
How did you save it exactly? Paste into a text editor? Direct from the Raw page?
Copy link to clipboard
Copied
Yep. copy paste.
Copy link to clipboard
Copied
Which text editor? Did you save it as plain text? TextEdit saves Rich text by default which won't work for a script.
Copy link to clipboard
Copied
Microsoft Word saved as plain text. On save It is a dialogue box with a number of options. I have tried all of them. No success.
Copy link to clipboard
Copied
I'm not sure I'd trust Word to save actual plain text regardless of what it says.
Either use an actual text editor or go to the URL for the raw text on Git and save the page directly:
Copy link to clipboard
Copied
Used Safari to save the code. Worked fine. Thanks!
Copy link to clipboard
Copied
There is a script here that does just that:
https://gist.github.com/bryanbuchanan/11387501
Readsing the thread on that git page, another user seems to have adapted it with ScriptUI and selectable units:
https://github.com/schroef/Illustrator-Scripts/blob/master/GetShapeArea-dialog-v005.jsx