
How to organize your layer structure for the script
This is a great script for Illustrator: it automates the export of layers into individual JPG files.
I found this at the hicksdesign blog when I was looking for a smart way to export all 87 layers of a design explorations file to make a web presentation. The standard way of dealing with this (the ‘Save for Web’ option) would have taken me ages, but after some minor adjustments (and a bit of trial and error), this is has become most favorite tool at the moment. It just saves so much time!
Before you go, you need a clean file set-up — the script executes an export of each top-level layer, including all its sub-layers. I added a feature that adds any layers named ‘ALWAYS’ as visible on top of each export. This is good for keeping a browser window visible all the time in the background or a logo, or any other elements that never change throughout your layers.
The size of the export area is defined by a cropping mask, so make sure you have one in place — otherwise the image will be cropped to the size of all visible elements on a layer.
Just throw the script in the folder Apps/Illustrator/Presets/Scripts and execute it will show up under File/Scripts.
(thanks Pete for helping me with the ALWAYS feature in javaScript!)
Download the jsx file for the script here as ZIP
Comments ( 6 )
ha ah wooo ha! thanks your a fucking star.
i dont know how much time iv spent manually exporting. and i always new there must be a easier way.
Thank you very much.
it worked a treat
Great script thanks!
Making the ALWAYS layer a white background helped me saving the jpg(s) to the artboard rather than tight around artwork itself.
Hi. I’m getting the layers to split out but I want the master background, slug and some info that applies to each layer on all layers. How do I achieve this? Thanks a million!
anything you want to show up on all JPG’s needs to be on a visible layer called “ALWAYS”. I usually have two of those master layers, one as the top-most, and one on the bottom for things to show up on top and below the layers I want to export.
hope that helps…
Millions of thanks. working here for a german sports company as a production artist and I always have files with many many layers and I always have to send out lowres files for approval…
Thanks to you and the author Niels Bosma!!
VIELEN DANK!
i try do it this way but i cant get the cropping mask done
is there a way we can include the script to save into artboard size?
Add a Comment
Additional comments powered by BackType
