Skip to content

Instantly share code, notes, and snippets.

pharan / LayersToPNG.jsx
Created January 27, 2016 01:26 — forked from nzhul/LayersToPNG.jsx
Spine 2D - LayersToPNG.jsx fix for Photoshop CC
View LayersToPNG.jsx
// This script exports photoshop layers as individual PNGs. It also
// writes a JSON file that can be imported into Spine where the images
// will be displayed in the same positions and draw order.
// Setting defaults.
var writePngs = true;
var writeTemplate = false;
var writeJson = true;
var ignoreHiddenLayers = true;
var pngScale = 1;