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
Adobe 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
Adobe 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
Adobe Expert
May 15, 2019

Yes you wrote they were all the same size it was easy to seen in your screen capture some of your template needs different aspect ratio images. If you want to use Replace content not only do the images need be the same aspect ratio and size they need to also have the same Print Resolution as the object in the template file.  That is because Replace Content uses Photoshop Place feature which will resize different print resolution images differently.

An other way to populate a mockup template is to edit the object and updated the object in the smart object layer.  Using that method you can fit any image into an object. The net result will look like an aspect ratio resized centered image crop.

My Script can use either method.  Their default method is Replace Content. However, they have an Edit option if checked  object will be edited and updated, replace content will not be used.  Therefor thoese template must have Photoshop objects the need to be replaced. Not Placed RAW files or places Illustrator files like .svg, .ai these file types are not supported by Photoshop but can be placed in.  So if they are Placed into to mockup templates Photoshop will not be able to edit then for they will open in ACR or Illustrator not Photoshop.

The BatchMockupTemplates.jsx script can process a folder of mockup files not just a single mockup template. One or more mockup templates can be processes using my script. I could not tell if the one seen on youtube can. It also does not seem to be available. I made mine available for free.  I pay for the sever its on. Its almost like I'm paying you to use my script. Am I doing something wrong perhaps I should remove it from the web.

You can populate all you template withs any size imags asi long as yoy fine the way the scrit fite the image into the template acceptable.

JJMack
JJMack
Adobe 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
Adobe 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