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

Action to add specific dimension to left and right side of current Artboard?

LEGEND ,
Apr 09, 2017 Apr 09, 2017

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?

4.4K
Translate
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

Community Expert , Apr 11, 2017 Apr 11, 2017

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.

Translate
Adobe
Community Expert ,
Apr 10, 2017 Apr 10, 2017

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.

Translate
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
LEGEND ,
Apr 10, 2017 Apr 10, 2017

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.

Translate
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
Community Expert ,
Apr 10, 2017 Apr 10, 2017

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.

Translate
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
LEGEND ,
Apr 10, 2017 Apr 10, 2017

I know the feeling, Doug.

Translate
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
Community Expert ,
Apr 10, 2017 Apr 10, 2017

Can you share the .aia file and include some instructions?

Translate
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
Community Expert ,
Apr 10, 2017 Apr 10, 2017

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.

Translate
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
LEGEND ,
Apr 10, 2017 Apr 10, 2017

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.

Translate
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
Community Expert ,
Apr 11, 2017 Apr 11, 2017

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.

Translate
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
Community Expert ,
Apr 11, 2017 Apr 11, 2017

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!

Translate
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
Community Expert ,
Apr 11, 2017 Apr 11, 2017

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.

Translate
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
Community Expert ,
Apr 11, 2017 Apr 11, 2017

i wonder if one could write an Enigma machine in javascript.

Translate
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
Community Expert ,
Apr 11, 2017 Apr 11, 2017

You can.

Maybe you could even incorporate that in Illustrator scripts 🙂

Enigma-Simulation in Javascript/HTML

Translate
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
LEGEND ,
Apr 11, 2017 Apr 11, 2017

Works like a charm, Kurt. I am in your debt. I'll try to understand just how you did it and keep learning.

Translate
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
Engaged ,
Jul 30, 2023 Jul 30, 2023

Sadly, I don't seem to be able to access this. It's hidden behind some sort of controlled area.

Translate
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
Community Expert ,
Jul 30, 2023 Jul 30, 2023

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.

 

Translate
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
Engaged ,
Jul 30, 2023 Jul 30, 2023
LATEST

Thanks Kurt.

Translate
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