Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

I have an Illustrator document with hundreds of vector images (each a color variation of a single image). Each vector image is on a separate layer. I have created an action to resize and export (save as png). Currently I have to apply this action manually for each layer. If 100 layers => click Action play button 100 times. Is there a way to create a batch action to perform an action on all layers in an Illustrator document with one click?

share|improve this question
1  
I believe you'd need scripting to walk through layers. –  Scott May 3 '13 at 7:04
add comment

1 Answer

up vote 3 down vote accepted

I'm answering my own question, since I found a solution.

Based on Scott's suggestion (in a comment to the question) to use scripting, I found a script that helps export each layer as a raster image. The script, called "Batch Export Unlocked Layers" is written by John Wundes. The script is hundreds of lines and too long to post here but I'll link to the download here (main site is www.wundes.com, in case of future link rot).

How to use:

  • Download the script and save it.
  • Open from Illustrator: File > Scripts > Other Script > locate file and Open.
  • A dialog generated from the script will open that allows you to specify size, file format and destination directory, as well as file name based on layer name. All unlocked and visible layers will be exported.
  • Click start.

I tested it in Illustrator CS4 and it exported 300 layers in less than a minute.

share|improve this answer
1  
Glad my comment was able to help. –  Scott May 3 '13 at 16:05
    
@Scott Thanks for help, really appreciate the pointer in the right direction. –  Pierre Rymiortz May 3 '13 at 21:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.