I have a pickle and am a bit of a novice when it comes to scripting. I have a Polo Design .PSD file with a smart object.
Inside this smart object are going to be literally a couple of thousand different designs each with their own layer name eg: MP-001.jpg, MP-002.jpg etc etc.
Here is what I need to do;
Is there a script or some sort of batch setting that could help me accomplish this?
Any help would be greatly appreciated.
Copy link to clipboard
I must admit, before anything else that I do not understand your problem. Based on first screenshot I have idea that you are looking for File > Export > Layers as Files but that can be my idea only.
You can record Photoshop action but to give you more precise guidelines I must understand what exactly you want or what is the problem. For now I think that you have Smart Object layer with lots of layers inside which you want to export as separate files.
I have attached a screen cast to help explain. In the example I only have 5 design in the smart object layers. There is infact 3000 in total that I need to save as jpgs.
NOTE: In the video I have been saving as PSD, this infact needs to be .jpg
My conclusion is: you have files with Smart Object layers which contains several images without layer comps, just layers one above another. You want to edit/open Smart Object layer, hide top most layer, save that change and export main file as JPG image. You want to edit smart object layer several time and to save several JPG files.
The question is: do you have same amount of layers inside smart object layer in all your templates? Or you have only this template which needs update and replacement plus save as JPG?
Thanks for your reply,
The smart object layer will have nearly 3000 layers, or possibly in smaller batches.
It would be the second issue you stated where the template will need to be updated and replacement plus save as jpg.
That is crazy amount of layers. I would not recommend to you to work in that way. It is much better option to use other technique to replace existing shirt and save as JPEG file. This is easier to do if your shirt images share same dimensions and of course orientation.
Copy link to clipboard
Perhaps this might help... Paul Riggott's Layer Saver Plus script will allow a common layer to be checked, then all unchecked layers will be combined with the common layer. Just select all layers before running the script. Thank you Paul!
There are many T-Shirt( Polo Design) mockup Templates available on the web some are free, others are for sale. Some are very good others poor and some can easily be batch populated and have Jpeg files saved. Having more than one design or multiple mockup in a single PSD template is not the kind of PSD file you want to have for a batch process. For a Batch Process you need a Mockup that is created to be easy to populate with a script. A relatively simple script can populate multiple mockup psd files with multiple designs. The script will replace the contents or edit the contents of smart object layers in the Mockup PSD files. To replace the single design in the Smart object layer. Your mockup can be a composite where there are multiple T-shirts with front and back views. The design in each front and back views will be in a smart object layer one smart object layer for each of the views. Not a single smart object layer.
Having 3000 design layers in a smart object layer object is not something you want to deal with. If will create a huge file, Slow down Photoshoop, be hard to maintain and update. Should you loose that file do to an error you loose all your work.
Photoshop Photo Collage and Mockup Toolkit
Photoshop scripting is powerful and I believe this package demonstrates this. Here is a video showing a 5 image collage PSD template being populated with images
The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
There are nineteen scripts in this package they provide the following functions:
Mockup Support Added
I created my Photoshop Photo Collage Toolkit nine years ago and Avoided supporting Templates that used Smart Object layers to warp, to add perspective, to rotate, add any distortion to images. Because replacement Image file needed to have exactly the same Aspect Ratio, Size and Print resolution as the Object in the Template's smart object layers object. Lately there have been some threads in Adobe Photoshop scripting forums dealing with updating/populating products Mockups Templates that have prototype smart object layers that need to be updated to create the output mockup files. These were good threads and prompted me to do some thinking.
So like my Photo Collage Template design has four simple rules. I came up with four simple rules for Mockup templates. I find that I can easily modify Photo Collage Templates and Mockup Template files I download from the web so they comply with my Photo Collage Template rules or my Simple Mockup Template rules. Mockup templates may be far from simple the only simple part is they are easy to update. So I have add support to my Photo Collage Toolkit to support Mockup templates.
Simple Mockup Templates Four Rules
For Details and Download use this link Free Photoshop Photo Collage and Mockup Toolkit
JJMack, is this Mockup Toolkit still available? The link doesn't work anymore.
Author passed away recently. I am not aware if anyone is maintaining links.
I'm sorry about that. Thank you for your reply.
Read this full thread think T-shirt not Candy Jars They had 41 designs in a smart object layer and 84 layer groups where each group was a product mockup. The file was over 1.59GB in size.
I converted it to into 84 mockup PSD files with one smart object in them and 41 design replacement files. The 1.59GB file was split into 125 small manageable simple files. The files still required 1.84GB of disk space. However Photoshop was dealing with small document not always dealing with a document the compressed size is 1.59GB.
A single batch script populated the 84 mockup templates with the 41 designs in a single run it took quite some time to create the 3,444 jpeg files
Is this toolkit still available?
Thank you very much!
Is there a place where I can look at the help file for this script? The one inside the script links to a page that doesn't work anymore.
There is a link at my GitHub repo to an internet archive page.
JJMack also posted supporting info in these forums on many occasions, just search.
You could have a look at layer comps which can be done with smart objects, it will still be a crazy amount of layers but I guess the workflow will be easier.
Of course, automating all this will require making your own actions (try what works)
See the help files here:
and a quick video here: