Mobile app version of vmapp.org
Login or Join
Holmes874

: Ai: Resize object to artboard dimensions within an action? I'm trying to create a custom action for initializing a new document so that it has a rectangular path marking the artwork bounds,

@Holmes874

Posted in: #Actions #AdobeIllustrator #Artboard #IllustratorScripting #Resize

I'm trying to create a custom action for initializing a new document so that it has a rectangular path marking the artwork bounds, trim marks around that, and a few other helpful guides and such on various layers.

These are things I find myself needing to create repeatedly for designs of various dimensions, so rather than repeat this process many times creating different templates, creating an action to handle all sizes seems more logical.

The problem is that there is no "Resize Selection to Artboard" option that I can record into my action, and it seems like the only solutions that exist are scripts (1, 2). Can scripts be triggered within an action? I tried doing this as a test, but the script execution was not recorded in my action.

I've also tried creating a rectangle of dimensions 100% by 100%. Of course this didn't work, it just defaulted to 100mm.

I'm pretty much open to any solution that can get a rectangle to fit the bounds of the artboard through an action. Thanks.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Holmes874

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cugini998

Scripts can be triggered by actions if they are located in the scripts directory and thus visible in File → Scripts folder. You do this by using the insert menu item... command in your actions panel hamburger menu.

However, there is a very recently fixed bug in Illustrator*, that prevents illustrator from remembering the script file location when you open it the next time. This bug can be circumvented by unloading and then reloading all your scripts after the software has loaded up. Essentially the init sequence is wrong. But if you are on subscription you might as well get the newest version, which unfortunately has not landed on my managed desktop yet. But this makes using this kind of stuff in batch pretty hard on older versions of illustrator.

But do put everything in a script its more flexible.

* finally its not like we haven't complained for years and years. In fact its the second feature of CC that i actually would use, good job.

10% popularity Vote Up Vote Down


 

@Berryessa866

There is an action to resize objects to fit the arboard.

Here is the link:
aiscripts.com/fit-object-to-artboard/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme