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.
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 -
acme-home-hovering-(~).png acme-home-popup-(~).png acme-home.png acme-product-big-(~).png acme-product.png