Skip to content
An Illustrator script to export layers to png.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sample
AiLayersExport.jsx
README.md

README.md

What is it

This script is based on Jon Hicks original SaveLayersAsPNG script which exports the top layers one by one.

When you're working on some big UI designs, you usually have lots of layers and sublayers, things that have to always stay visible, or some more complex scenarios. This script will export layers recursively based on some flags at the end of the layer name.

Layer flags

You can add a special flag at the end of a layer to control it's rendering:

  • (+) - always visible - good for backgrounds, headers and footers, ...

  • (-) - ignore layer

  • (~) - popup layer - useful for overlays and popups, the script will export once with the layer hidden, and once visible.

  • no flag -

Example

Exported files:

acme-home-hovering-(~).png
acme-home-popup-(~).png
acme-home.png
acme-product-big-(~).png
acme-product.png

You can’t perform that action at this time.