Skip to main content
parthm30320117
Participant
June 22, 2019
Answered

Can I replace two smart objects at once in bulk and export using scripts or any other method.

  • June 22, 2019
  • 2 replies
  • 586 views

So, I have this Catalogue design mockup, in which I have two smart objects, one is the image and other one is the background color.

The background color changes as per the major color of the main image. The design is ready, but the images I've to replace are 100+, so I've to find a fast way in which I can replace the images and the background color at once and it exports the whole images in jpg.

If not this method, is there any other that will work, because I don't want to replace and export 100+ images manually. Please help me out of this. Thanks.   

This topic has been closed for replies.
Correct answer JJMack

Checkout the BatchMockupTemplates.jsx Script in my toolkit. Free Photoshop Photo Collage and Mockup Toolkit  The package may be more than you want and  you may need to modify your template to have the two smart object layer toe be replaced on top of the layers stack.  The could be duplicated of the existing ones the have their visibility off  and have been move to the top of layers stack.  They woul share the object you not have.  My script is quite simple it can populate any number of smart object layers on top  of the layers stack and populate any  number of mockup with replacement objects,   The replacement collections need to be in  folder in a collection of folders with the names  obj0, obj1, ... objn.  In your cast design in obj0  and color in obj1 if design is on top of the stack.   The script uses Replace content by default however replacement objects must have the exact sane size, aspect ratio, and print dip as the objects in the mockup templates.   If these are not exactly the same the smart object associated transform will nor work correctly.  These transforms  are not replaced or modified when replace content is used.  The Script can alternately  Edit replacements into the existing object.  Be fitted to fill the object  or be fit within the objects size and if need be rotated for best fit.

2 replies

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
June 22, 2019

Checkout the BatchMockupTemplates.jsx Script in my toolkit. Free Photoshop Photo Collage and Mockup Toolkit  The package may be more than you want and  you may need to modify your template to have the two smart object layer toe be replaced on top of the layers stack.  The could be duplicated of the existing ones the have their visibility off  and have been move to the top of layers stack.  They woul share the object you not have.  My script is quite simple it can populate any number of smart object layers on top  of the layers stack and populate any  number of mockup with replacement objects,   The replacement collections need to be in  folder in a collection of folders with the names  obj0, obj1, ... objn.  In your cast design in obj0  and color in obj1 if design is on top of the stack.   The script uses Replace content by default however replacement objects must have the exact sane size, aspect ratio, and print dip as the objects in the mockup templates.   If these are not exactly the same the smart object associated transform will nor work correctly.  These transforms  are not replaced or modified when replace content is used.  The Script can alternately  Edit replacements into the existing object.  Be fitted to fill the object  or be fit within the objects size and if need be rotated for best fit.

JJMack
JJMack
Community Expert
Community Expert
June 22, 2019
jane-e
Community Expert
Community Expert
June 22, 2019

I moved this from Adobe Creative Cloud to Photoshop based on your tags suggesting you are using Photoshop.