Comments (11)
Hi, sorry to hear about that. Depending on the format you use, Photoshop may replace these spaces by itself (when "Save For Web" functionality is used under the hood). Leave the changes you made to the script and follow this guide: http://www.craig.copperleife.com/tech/photoshop_dashed_filenames.htm
When finished with settings, just click "Done". It should work then.
from photoshop-export-layers-to-files-fast.
Just an additional comment, if you're savvy enough you can look to use something like Windows Powershell to accomplish batch renaming, but skjorn's link should address what you need. http://stackoverflow.com/questions/16636996/replace-or-delete-certain-characters-from-filenames-of-all-files-in-a-folder
from photoshop-export-layers-to-files-fast.
Wow! thanks for the quick reply, Skjorn - and you nailed it! No wonder I couldn't find the issue in yer script - it wasn't there!
Thanks as well, jwa.
I'll check out donations in a sec.
This has proved invaluable in a project I'm working on. Reading elsewhere on this project, I see there's been suggestion of a few other things that would mean your script would be a 1-click deal in a very complicated export task. Details of my project here:
https://dl.dropboxusercontent.com/u/15144043/Tagger%20Blagger/GameTagger%20Blagger%20Readme.pdf
The functions that would make this killer are:
- Auto-create folders from Group names on export
- A 'switch' in the group name to specify whether the export is to be a single flattened .png from a number of layers in a group OR individual exports of each layer within each group (as per present). The switch could be at the end of the group name, after a minus or something? e.g. "Buttons-f" = flatten or -i = individual?
- Dunno if this is possible, but to export to the layer size rather than the canvas size? Having to Smart Object it, Edit then print from resulting psb...
Thanks again chap. It's almost like true altruism + creation lies with coders these days. My hobby+projects would be lost without you guys. :)
from photoshop-export-layers-to-files-fast.
Thanks for your suggestions. Glad we could help :-) I guess this project is sort of pure altruism. I use the script fairly frequently on my projects and I thought why not make my improvements public. I've spent a lot of time on them (actually never scripted in Photoshop before this :-) ), so others don't have to.
Considering your proposals:
- Folders from group names are actually on the wish list (see #17).
- Switches in names... There's an earlier fork around here somewhere that already implemented it. I don't really like it being a part of this script myself. It feels like a hack and project specific too. It just overcomplicates things and makes the script bloat. People might name their layers differently and might be not aware of this magic interpretation. I would prefer it to be a separate step. One script to pre-process the PSD based on switches or whatever, this one, and possibly one to combine them together into a single step. In other words, it calls for another project.
- Layer sizes... There's a plan to add trimming options (see #5). But I've never actually worked with Smart Objects. Not sure if there's even access from scripting API. Maybe if you could describe what you're doing with them in detail, we could consider how they fit into the big picture.
from photoshop-export-layers-to-files-fast.
Thanks @stigzler.
I'd also like to address the second point you've made.
If you have access to Photoshop CC you can actually export layer groups as flattened images by appending the group name with ".png" or ".jpg" or what have you. Then going to File -> Generate -> Image Assets.
That being said, if you don't have Photoshop CC then that option becomes unavailable to you. So I think @skjorn that we could add functionality as requested, without it needing to be hacky by using a similar syntax as Adobe uses. We could even have a checkbox where they can opt-out of it flattening layer groups even with the extension.
Just a thought!
from photoshop-export-layers-to-files-fast.
Interesting thought. We could do something like this if it's in line with standard functionality I guess.
from photoshop-export-layers-to-files-fast.
It's actually very similar to #21.
from photoshop-export-layers-to-files-fast.
thanks fellas. And nice steer jwa - have got cc - so will look into this
from photoshop-export-layers-to-files-fast.
@stigzler By the way, I added an option to leave spaces in file names, so you don't have to hack it and maintain future updates. You can reference this script directly. I also made the dialog appear faster for documents with many layers, so it shouldn't be such a pain to cancel and come back if you forget something.
from photoshop-export-layers-to-files-fast.
Sounds spot on, skjorn - thanks fella!! That faster dialogue is a godsend too. Many thanks.
Did have a go with PS Genrator. Whilst it looks quite good - lacking atm one major component which is exporting images to canvas rather than [layer?] size. Also, quite fussy with filenames.
Therefore sticking with your script at the moment - I'll be sure to mention you guys in my project doc acknowledgements. Will follow with interest any future updates giving folder creation options.
Will also make sure direct reference to yourselves in the amended readme.
from photoshop-export-layers-to-files-fast.
PS Generator looks cool and is open source, too. Finally a step in the right direction from Adobe.
from photoshop-export-layers-to-files-fast.
Related Issues (20)
- Storing Variables
- Nested groups cause the script to fail
- Feature suggestion - per-layer alpha channel
- Export to TGA not working
- Suggestion - JSON file output
- Request: Export images as incrementally visible layers
- Question: Support Layer Style? HOT 1
- Allow adjustment layers at the top of the layers panel
- A problem with exporting to PSD
- Doesn't Select Layers To Export
- Failed to read the resource file 'Export%20Layers%20To%20Files%20(Fast)-progress_bar.json' HOT 3
- Weird compression issues while exporting through this.
- No issue - just thanks
- No images
- WEBP export as an option
- Separate Width and Height Padding
- Not clicking RUN option in batch mode for large number of frames
- The last workable version for CS3 is 1.2
- save multiple layers to one file
- Feature Request: User Presets or Save And Load Preset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photoshop-export-layers-to-files-fast.