• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Batch replace smart objects script using a linked file for multiple files

Community Beginner ,
Feb 08, 2023 Feb 08, 2023

Copy link to clipboard

Copied

Hey guys,

 

I have been digging into the forums but haven't seen a script for this use case yet. I barely have any script knowledge. I am looking for a script that can essentially update a smart object file (.psb), and save it and export both the updated smart object file itself and all of the linked mockups.

 

I have a single psb smart object file that is linked to 8 other template files. That way when I update the smart object, it reflects across all the template files which is nice. But I need to do this so many times a day that a script would be highly beneficial.

 

My current process:

1. Open 8 mockups and the linked PSB file associated with them

2. Drag image into PSB file

3. Expand image to fit dimensions

4. Save image to update the other mockups

5. Save the PSB file as its own JPG at project dimensions

6. Use image processor to export all the updated mockups at a certain size

 

What I am looking for in a script:

1. Pulls images from a folder

2. Place said images into the smart object PSB file linked to other mockup templates

3. Saves the PSB file with each image (which updates all the mockups)
4. Exports all of the files as JPGs while exporting the PSB file as JPG in its already set project dimensions at full quality

 

Does anyone know of a script that can do this? Or maybe one that is fairly close? Thank you!

TOPICS
Actions and scripting , Windows

Views

7.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 15, 2023 Feb 15, 2023
quote

1. Is there a way to only have the script save just the smart object file instead of all the files since the smart object file is the only one that changes and updates the rest?

 

@MasterCrod103 

 

Sure, I was assuming that you would wish all files to be "synchronised", but this is easy to do by deleting the appropriate chunk of code. 

 

quote

2. How do I change the export quality of the smart object file export to max it out?

 

By adjusting the quality value from 70 to 100. I have changed this

...

Votes

Translate

Translate
Adobe
Community Expert ,
Feb 16, 2023 Feb 16, 2023

Copy link to clipboard

Copied

LATEST

It depends on the process and your knowledge of Photoshop and scripting.

 

What is the other process?

 

Start a new topic if you think that is better than diluting this one.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines