Colleague Johan asked whether someone could knock up a script which exports all text layers from a Photoshop document to a text file (viz. a PSD2TXT tool/script), enabling one to slice even faster than he already can. Last week I released the first version of the script (v 1.2), now it’s time for an update.
What has changed?
- UPD: Base rewrite, now gets all layers (sets & regular ones) in one variable.
- ADD: Layer Path & Layer Name in export.
- ADD: Cycle Multiple Files when more than one file is open (user can still choose to only parse the current document though).
Download PS_BRAMUS.TextExport (PSD2TXT)
Update November 2008:
PS_BRAMUS.TextExport is outdated and has been replaced with
PS_BRAMUS.TextConvert which does both import and export!
Installation / How to use
PS_BRAMUS.TextExportfrom the link above
- Extract it to Presets/Scripts folder of your Photoshop installation folder (defaults to C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts on Windows)
- Restart Photoshop if it was already running
- Open the PSD you wish to export text from
- Now, when having a file opened, go to File > Scripts and select PS_BRAMUS.TextExport.1.3 from the list.
- Wait until the output file appears 🙂
Three settings in
PS_BRAMUS.TextExport can be configured, all to be found in the
.jsx file itself.
- Open up
PS_Bramus.TextExport-1.3.jsxwith your favorite texteditor
- If you want to choose where to save the file to, set
true. If set to
false(default), the output file will be saved into your documents folder
- If you don’t want the exported file to be openend after the export has run, set
false. If set to
true(default), the output file will automatically be opened by your default text editor.
- In the export file, each line is separated by a
separatorstring. Change this one to use one you like (defaults to
PS_BRAMUS.TextExport on multiple files, the
openFile parameters will be overriden. All files will be saved as
nameofyourpsdfile.txt in your documents folder and only a notice that the files were saved will be shown.
PS_BRAMUS.TextExport with a pretty complex PSD, which holds the design of 3RDS. Here are the results:
I don’t run ads on my blog nor do I do this for profit. A donation however would always put a smile on my face though. Thanks!