![]() ![]() Although they all sit on the same canvas, they act individually and they can be printed and exported as distinct items. Try it out, and leave a note in the comments if you have any problems or suggestions.Illustrator uses artboards, which are similar to pages in InDesign, for layout. And if you choose the “Artboard + Layers”, it will do a combination of the two other options and generate four files: Red-Play.png, Red-Pause.png, Blue-Play.png and Blue-Pause.png.The “+Button” and “+Gradient” layers will appear in the background of both exported files, and it will skip the “-Pause 2″ and “Layer 5″ layers. If you chose “Export Layers (on currently selected artboard)” it will generate two files: Play.png and Pause.png.(It skips the “-Green” artboard because the artboard name begins with a minus sign. If you run the script and choose “Export Artboards (with currently visible layers)” it will generate two files: Red.png and Blue.png that include whatever layers are currently showing at the time you run the script.The sample file contains artwork for buttons on three artboards - “Red”, “Blue” and “-Green” - and has seven layers. You can try it out on the sample file artboard-layer-test.ai. It has an option for transparency, and lets you choose between PNG8, PNG24 and PDF.It stores its settings in a nonvisible, nonprinting layer named “nyt_exporter_info”.Useful for if you want to have a layer that always appears in the background of each exported image. For layers only: If you put a plus sign (+) in front of a layer name, that layer will always be visible.(Useful for when you no longer decide you like a particular mockup, but don’t want to delete it from the master Illustrator document.) If you put a minus sign (-) in front of a layer name or artboard name, it will skip that layer or artboard. ![]() It only exports layers where their name has been changed from the default “Layer 1″, “Layer 2″ or “Artboard 1”, “Artboard 2”, etc. Files are named based on their layer name.You can choose whether you want to export all the artboards in the document with the currently visible layers showing, or if you want to export files for each of the layers in a document on the currently active artboard, or if you want to export a combination of all the artboards multiplied by all the layers.Restart Illustrator, and run the script by going to “File > Scripts > MultiExporter”. To use the script, download MultiExporter.jsx and put in your Illustrator scripts folder (usually in Applications/Adobe Illustrator/Presets/Scripts/). So, a couple train rides later, I’ve finally combined the two scripts into a single one with a couple more added features: you can choose to export as PDFs in addition to PNGs, and you can also export the product of artboards and layers. (See my previous blog posts here and here.) I’d been meaning to merge them into one script, but had never quite gotten around to it until Khoi tweeted that he was looking for a script that did just that, but to PDF format. Over the last year or so, I’ve cobbled together a couple Illustrator scripts that export multiple artboards in an Illustrator document as PNG files, and export multiple layers as PNG files. ![]()
0 Comments
Leave a Reply. |