ShoeBox is definitely the way to go, though if for some reason you'd still prefer a Photoshop script: #target photoshopapp.bringToFront();if(app.documents.length > 0){ var sourceDoc = app.activeDocument; var oldUnits = app.preferences.rulerUnits; app.preferences.rulerUnits = Units.PIXELS; if(sourceDoc.layerSets.length >…
//edit: didnt mention that, but the sprite sheet is for animations, so the images have to go from left to right - top-down Hey all, iam just wondering how a good spritesheet workflow would be. My curently workflow is 1. Render Animation 2. Put all in one Css file on top of each other and Crop 3. Save them out via script 4.…
Maybe you can skip photoshop altogether and use a tool like Shoebox? http://renderhjs.net/shoebox/ But in case you can't I modified your script. Select a layer group, then run the script. It will create a new document, and modify that one. I find this better than modifying the original. You should keep the original version…