Skip to main content
michaels98767078
Participant
April 15, 2024
Question

I need help on how to download a set of images

  • April 15, 2024
  • 4 replies
  • 393 views

I have an e-commerce store and sell t-shirts Hoodies etc.
I need to create mockups
I sell my T-shirts in 9 colors, therefore I need 9 identical mockups, one for each color.
the 1st screenshot shows How I set the .PSD up and it does work, when I change the very top smart object all of them do change.
I need help with saving the files. 
Solution one is to just go one by one and export> quick export to .png , but there are 9 mockups in each set and I have to do over 100 sets.
the 2nd solution I could find is by exporting layers as shown in the 2nd screenshot. When I do that I get one correct mockup but with a wrong title, and one of the base mockups without the design. Saving these ten files takes about 8-10 minutes on my computer with 64g of Ram.
I am sure there must be an easier and faster way to do this and am asking this community to please help me TIA



This topic has been closed for replies.

4 replies

Stephen Marsh
Community Expert
Community Expert
April 16, 2024

@michaels98767078 

 

This might be faster and easier for me to create a script for you than I first thought... Can you post a cropped screenshot of the entire layer panel width and depth with everything visible (one or more screenshots)?

 

Is the basic layer structure the same in all 100 documents? Automation requires consistency!

 

Also, please confirm the exact name that you wish to save by, and how that name is identified (doc name, layer names etc) and what file format and location to save the various files in.

 

Edit: Here is a sample of the script cycling through the layer pairs with a constant background, the alert dialog showing the file name + layer 1 name + layer 2 name is where the file would be saved using this name. There are only 2 pairs of layers in this example, but it would work the same for all 9 pairs/sets:

 

Stephen Marsh
Community Expert
Community Expert
April 16, 2024

@michaels98767078 

 

Looking at the layer structure, there are pairs of images.

 

So you need to export the first two layers visible, then the next two layers visible etc. (9 pairs)... All with a common background in one or more other layers.

 

Is this correct?

 

If so, I'd suggest the following Layer Saver script to save sets of variable + static layer combinations:

 

https://github.com/Paul-Riggott/PS-Scripts/blob/master/Layer%20Saver.jsx

 

You would create a separate layer group for each pair of images.

 

The common background layers would not be in groups. You would then select all background layers and then run the script. As you can see there are many options and the setup is flexible, you could also put the common background layers into a layer group and use the option to use the bottom layer group instead:

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

 

 

P.S. If you had made the files with Layer Comps, then you could save the comps using the script that ships with Photoshop. But that would still need to be run manually for each of the 100 layered files as the script isn't for batching.

Stephen Marsh
Community Expert
Community Expert
April 16, 2024

P.S. Paul's other script, Layer Saver Plus can also do this as well:

 

https://github.com/Paul-Riggott/PS-Scripts/blob/master/Layer%20Saver%20Plus.jsx

 

These scripts are not for batch processing, you would need to setup all 100 files to suit the script, then run the script for each of the 100 separate files... But at least that is only 100 manual steps, which is better than 900 or more!  

 

Full batch automation from your current layer structure would require a custom script...

 

Bojan Živković11378569
Community Expert
Community Expert
April 16, 2024

You're seeking automation for an existing mockup, correct? Scripting would be necessary, as Photoshop actions cannot be directed to use layer names as file names, and the 'Export As' function is not recordable.

 

I will tag some scripters that may be able to help you: @c.pfaffenbichler @Stephen Marsh 

kglad
Community Expert
Community Expert
April 16, 2024

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from cc desktop">