Skip to main content
Participating Frequently
May 15, 2019
Question

How to combine multi Psd Mockups with one script ?

  • May 15, 2019
  • 3 replies
  • 4590 views

Hello,

I want to make something similar as this => Automatic Photoshop script for mockups by GGdesigns - YouTube

I have about 20 psd Mockup and folder with 5000+ designs all with same size (dimensions) I want to generate from each design

20 variations of mockup this is why I need to make a script but I don't know the best way to do it.

On the video it's exactly what I want but can't find the script.

Thanks

This topic has been closed for replies.

3 replies

JJMack
Community Expert
May 15, 2019

About the video on Youtube. I can not tell if their script can hand a collection of template in a single  run or what their mockup template design requires and I do not see that their script can be downloaded. They are using a Mac. I use Windows. However, I believe my scripts will work on a Mac.  For Mac and PC Photoshop version are mostly the same.  The are slight OS system related differences and mac use addition file extension like .jpe  for Jpeg images.  If the there are compatibility issued they will most likely be easily fixed.

JJMack
JJMack
Community Expert
May 15, 2019

Here is an example mockup template that has 6 Smart Object that will be populated with replacements Images. 5 wall hanging images and floor replacement. Each Smart Object that need to be updated need to has a  folder of  replacement files. So there are 6 input image replacement folders required.  If a had 20 room designs there could be 20 Template in the mockup templates folder

All the template would have the same 6 object layers input replacement image available. However, the templates  may not need all 6. Perhaps just a main room wall picture and a floor.  May be requited.  Each room's visible smart object layer will transform the replacement for its room design.

The only problem I think you will have is knowing you need at three smart object layers in some of your templates  to be able the handle image with the different aspect ratios the you seem to have in some templates.   Only the smart object layer that has the correct aspect ration replacement need be visible. All you portrait image have an aspect rate close toe each other.  It looks like you may have two different landscape image aspect ratios in your emplate collection

JJMack
Participating Frequently
May 15, 2019

I see your example but in my case each mockup is separate not in one mockup regarding my collection it's just a sreenshot of course if I success to make script work I will separate for Landscape view mockup and Portrait to avoid problem. For my need I will most of time doing max 50 different designs on each mockup around 20 is enough.

So 1 design give me 20 mockup at the end then I have enough choice for my future needs.

About recording action with all PSD mockup is good idea or not the best approch ?

Thanks for your time

JJMack
Community Expert
May 15, 2019

Warning if you are using CC 2019 there seems to be a bug in Replace Content.  Occasionally Replace Content statement may fail with an error that the users canceled the operation. My script will catch that error and alert you it has happened.  At the point you should terminate the run.  If you just dismiss the alert the script will continue processing but some of the output mockup will  not be populated correctly for the error corrupted the mockup open in Photoshop addition replace content do not fail with an error, they also do not update the smart object. So the correct output file name is saved but the content is not correct.  Replace content will start working correctly again when the script opens the next template to process.  The mockup templates in the templates folders do not get corrupted only the in Photoshop document may become corrupt. The mockup template on disk on disk in the templates folder are never change by the scripts.

All Photoshop versions have bugs....

JJMack
JJMack
Community Expert
May 15, 2019

If the Template comply with my four Mockup Template rules there a chance the BatchMockupTemplates.jsx Script in my package will be able to populate  your 20 mockup in a single execution.  It has been able to populate 84 Mockup with 41 label designs, That is 3,444 output files.  Each template only needed one smart object updated. The script took around 5 hours the save the 3,444 populated mockups. Free Photoshop Photo Collage and Mockup Toolkit

JJMack
Participating Frequently
May 15, 2019

My mockups look like this don't know if I can use your script with or I record action making one by one mockup then do it in batch for the folder not sur it's the best approch I'm very newbie for this !

JJMack
Community Expert
May 15, 2019

It All depends on how you structure you mockup template. My Script require Smart Object Layer one the top of the layer stack I would have  no problem creating mockup template for mockups that look like your. That can be populated with my scripts. If your are not compatible I most likely would be able to modify them to be compatible.

Start with a small test run.   Do not try the full batch first.  20Templated X 5,000 Designs =100,000 output files will take he better part of a day perhaps more depending on the sizes.  I would also think require disk spaced to store the 100,000 jpeg files and if you use the PSD option a lot more disk space to store the additional 100,000 layered psd files.   Do a small test run before trying to create the 100,000 or 200,000files.  Processing 120,000 files is going to take time

JJMack