Copy link to clipboard
Copied
I have an Action that sizes a single Artboard based on a user-defined rectangle. Later in the Action I want to automatically add 1mm to each side of the Artboard. Is this possible in an Action? I see no way to "add" to the current size since Actions have no variables. As a workaround I have tried to have the Action at least open the "Artboard Options" dialog, but this does not appear to be an "Actionable" event. Right now my only options seem to be a "STOP" directing the user to add to the Artboard size "manually" or have the redefine a rectangle that can be used to update the artboard size.
Any ideas?
There are just three modifications required to add the dimensions only to the left and right side of the artboard. Example:
artboard_extender_left_right.aia.zip - Google Drive
By the way, I realized that the most recent English versions of Illustrator have some localisation issues with actions that are made with an international non-english version of Illustrator. If the action doesn't work in CC 2017 (english) it probably has to be re-recorded in that version in order to work properly.
Copy link to clipboard
Copied
would it be possible to create a rectangle, use that to define the artboard size, then remove the rectangle, as part of the action? since it seems you can both set notes for objects and select objects by their note.
Copy link to clipboard
Copied
Hi Doug,
Yes, that'll be my workaround. I was just hoping not to force the user to input more numbers since I simply need to add a specific amount to each side of the the artboard.
Not knowing Javascript is my real challenge.
Copy link to clipboard
Copied
ah i see. the initial artboard is not a set size.
i wish i had more time to devote to scripting too. there was a period a few years ago where i learned some basics, but never had a chance to progress further.
Copy link to clipboard
Copied
I know the feeling, Doug.
Copy link to clipboard
Copied
Can you share the .aia file and include some instructions?
Copy link to clipboard
Copied
Kobold Productions sincerely presents Craighead’s Artboard Extender:
craighead_artboard_extender.aia.zip - Google Drive
To test:
- Open a new document.
- Load the .aia file.
- Make sure that Align to Artboard is turned on in the Align palette.
- Play the action.
The sample action adds 5 mm to each side of the artboard. You can modify that value in action step 18.
Copy link to clipboard
Copied
Kurt, you're the man! This does almost exactly what I need.
I think with a tweak or two it'll be there. I am actually trying to only expand the left and right sides of the artboard. I will work with the ideas you've given me and see if I can make the adjustment needed.
It really helps to have a fresh perspective! Really appreciate it.
Copy link to clipboard
Copied
There are just three modifications required to add the dimensions only to the left and right side of the artboard. Example:
artboard_extender_left_right.aia.zip - Google Drive
By the way, I realized that the most recent English versions of Illustrator have some localisation issues with actions that are made with an international non-english version of Illustrator. If the action doesn't work in CC 2017 (english) it probably has to be re-recorded in that version in order to work properly.
Copy link to clipboard
Copied
the action works on my end, though as it keeps the German step names it can be a little hard to decipher what it is up to!
Copy link to clipboard
Copied
Not that long ago your mother country used to be pretty good at deciphering secret German code.
Sorry, couldn't resist. Thanks for reporting that it works.
Copy link to clipboard
Copied
i wonder if one could write an Enigma machine in javascript.
Copy link to clipboard
Copied
You can.
Maybe you could even incorporate that in Illustrator scripts 🙂
Copy link to clipboard
Copied
Works like a charm, Kurt. I am in your debt. I'll try to understand just how you did it and keep learning.
Copy link to clipboard
Copied
Sadly, I don't seem to be able to access this. It's hidden behind some sort of controlled area.
Copy link to clipboard
Copied
It has something to do with a major change that Google introduced a while ago when it comes to access older download links. Looks like one has to first ask for some sort of unlocking the links. I will take a look for a way to generally unlock them, but that may take some time.
Copy link to clipboard
Copied
Thanks Kurt.