Batch replace smart objects in mockup file
Hi there,
I want to know if it's possible to import x-number of png images into a mockup template with a smart object and then all saved in jpgs? The following script is not working for me but it's probably close to what I need:
The script must do the following:
Search in folder for PNG files
Place the PNG image into the Smart Object (top center)
Save file as JPG into the source folder with the same name as the source file
For example:
Before the script
\Images\Image 1\PNG\Design1.png
\Images\Image 2\PNG\Design2.png
\Images\Image 3\PNG\Design3.png
\Images\Image 4\PNG\Design4.png
After the script
\Images\Image 1\PNG\Design1.png
\Images\Image 1\PNG\Mockup.jpg
\Images\Image 2\PNG\Design2.png
\Images\Image 2\PNG\Mockup.jpg
\Images\Image 3\PNG\Design3.png
\Images\Image 3\PNG\Mockup.jpg
\Images\Image 4\PNG\Design4.png
\Images\Image 4\PNG\Mockup.jpg
I hope this makes sense. I will appreciate if someone can give me an advise what is the best way to do that.
Kind regards,
Katt
