Photoshop Gurus

Go Back   Photoshop Gurus - Tutorials, Resources and Latest on Photoshop Forum > Photoshop Resources > Automated Actions and Vector Shapes


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-2009, 12:37 PM
Junior Member
 
Join Date: Nov 2009
Posts: 13
Smile Any way to automate duplicating all layers to new documents?

I have a layer list of about 15 layers. I currently have to right-click, duplicate new, and type the name to duplicate each layer out to their own document. I have an action to automatically save the duplicated file to a specific folder and close it, but I'd like to roll it all into one or two steps.

For example:
Click and action that runs through the layer list, duplicating the first layer out, saving/closing it, then back to the 2nd layer, save/close, 3rd layer save/close, etc.

or

simply runs through the list duplicating out each layer to their own files, and then i can hit each one manually with the save/close action i already have.

Any thoughts on how to accomplish this?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-18-2009, 02:40 PM
Member
 
Join Date: May 2009
Location: Bradford,UK
Posts: 44
I wonder if you have tried:-
File - Scripts - Export Layers to Files...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-18-2009, 05:36 PM
Junior Member
 
Join Date: Nov 2009
Posts: 13
Quote:
Originally Posted by Paul MR View Post
I wonder if you have tried:-
File - Scripts - Export Layers to Files...
THAT is cool!

I'll have to play with it to see if I can incorporate it into other actions to create what I'm looking for. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-19-2009, 01:03 PM
Junior Member
 
Join Date: Nov 2009
Posts: 13
How can I remove the "_0001" "_0002" etc that is placed in front of the output files?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-19-2009, 01:14 PM
Member
 
Join Date: May 2009
Location: Bradford,UK
Posts: 44
You could comment out line 793
fileNameBody += "_" + zeroSuppress(i, 4);
just put // in front.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-19-2009, 02:08 PM
Junior Member
 
Join Date: Nov 2009
Posts: 13
Also, I need each layer to be converted to Bitmap (Image>Mode>Bitmap)before being saved off. I wonder if there's any way to implement this along with the Export Layers to Files script?

Last edited by darthsmozers; 11-19-2009 at 02:10 PM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-19-2009, 02:09 PM
Junior Member
 
Join Date: Nov 2009
Posts: 13
Quote:
Originally Posted by Paul MR View Post
You could comment out line 793
fileNameBody += "_" + zeroSuppress(i, 4);
just put // in front.
Wow, you're awesome! (I have very little programming experience...)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-19-2009, 05:42 PM
Member
 
Join Date: May 2009
Location: Bradford,UK
Posts: 44
Add these two lines after line 791
Code:
 duppedDocumentTmp.changeMode(ChangeMode.GRAYSCALE);
duppedDocumentTmp.changeMode(ChangeMode.BITMAP,new BitmapConversionOptions);
Before Line 792
Code:
var fileNameBody = fileNamePrefix;
You might only be able to save as a psd though?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-20-2009, 01:54 PM
Junior Member
 
Join Date: Nov 2009
Posts: 13
Quote:
Originally Posted by Paul MR View Post
Add these two lines after line 791
Code:
 duppedDocumentTmp.changeMode(ChangeMode.GRAYSCALE);
duppedDocumentTmp.changeMode(ChangeMode.BITMAP,new BitmapConversionOptions);
Before Line 792
Code:
var fileNameBody = fileNamePrefix;
You might only be able to save as a psd though?
I added those two lines after 791. They become lines 792-793. When adding that last line of code you mentioned before line 792. Is that the old 792 or the new one? :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-20-2009, 04:11 PM
Member
 
Join Date: May 2009
Location: Bradford,UK
Posts: 44
Sorry I even confused myself the new two lines of code should be placed just before..
var fileNameBody = fileNamePrefix; (Line 792)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 09:19 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0