Okay I have found the probelm. The problem with Export Layers to Files is when the layers are within a group and exported, it doesn't actually trim the layers.. even if the png option is ticked. Thye all come out in their respective postitioning in the original image/document size, but with all other blah blah blah yaaaaawn. Of course a layer mask outside of a group is merely an overlay so that is another wall come down which is really fantastic. I just wish it was a little harder to do this simple export because I'm not quite miserable enough yet which is a real shame so I may just start slamming my head down on the table. If anyone has a script for not slamming your head down on a table, blah blah boing blah.
Bizarrely I finally have this working with this script:
The scipt won't run (or even open) with just the group, its mask and its containing layers. But, if I have a couple of random layers ontop of the group (whatever.. lines/shapes/words), the script will open! Yey. Stranger still (but works so don't care), the random layers ontop of the group aren't exported.. just the layers within the group; all nicely trimmed and with the desired masking exported on each layer too. Nice.
Thank you scriptsrus! Muchos gracias.
No that hasn't solved it either. I only tested on one shape within a group (with masking effect applied), and a load of shapes outside that group. Exported was the groups singled containing trimmed layer. Try that with a load of layers within a group, and tay all get exported out as one. Trimmed, but only as far as the farthest out (or closest to the edge of the document).
I think this simply can't be done yet in photoshop. Weird, and frustrating. Lovely.
Hi, ran into this problem using CS6, what's more frustrating is that it worked the first time I used it on a file with with many different groups of layers and when it took so long, I shrunk the file by taking out a group that was specific to my needs and it started not working.. I never got to figure out why, but I did what this guy says: http://www.youtube.com/watch?v=hKJqLLpusJg to finish the job... maybe useful..