Skip to main content
tokuredit
Inspiring
March 1, 2016
Answered

Replace Smart Object to images from bridge

  • March 1, 2016
  • 3 replies
  • 1173 views

Hello! I know it can be a bit complicated, I created an action to replace layers "Smart Object" for selected images from Adobe Bridge, only always overrides the same images ... There is the possibility of getting this done through a script with the least 5 images?

In this way:

http://zip.net/bhsYDX

http://zip.net/bnsYvV

This topic has been closed for replies.
Correct answer JJMack

And what would this escipt?


tokuredit wrote:

And what would this escipt?

????

3 replies

tokuredit
tokureditAuthor
Inspiring
March 3, 2016

Rei_Martins, was inspired by this plugin I'm trying to create my panel for creation of my albums.

Rei_Martins
Inspiring
March 3, 2016

We are working in an upgrade with English and Spanish languages and some new function.

One of these function is "Insert Images" in "Smart Objects".

Rei_Martins
Inspiring
March 3, 2016

Hi Tokuredit,

see this product...

It does what you want.
Superalbum - Produtos para diagramação de álbuns

Thanks,

JJMack
Community Expert
Community Expert
March 1, 2016

It sounds like to me your trying to populate a template that has smart object layers you want to replace with different images.  One of the problems there would be  that the replacement images need to be the same size as the original object. For there is an associated transform associated with all smart object layers that are not replaced or updated when the smart object layers object is replaced.  If the replacement is not the same size as the original the associated transform will not be correct for the replacement.

I have never programmed an Adobe bridge script. I know nothing about BridgeTalk interface or how you would pass both images file and template to the script in Photoshop of if you script would expect the template to be open in Photoshop in the first place.  Your description of what your are doing in the action is a bit vague. You mat need to add an additional option to the Bridge's Tool  menu.

If you are trying to populate a template you may want to look at my collage populating scripts in my package.  There is a video of 5 images being populated.

Photo Collage Toolkit

Photoshop scripting is powerful and I believe this package demonstrates this A video showing a 5 image collage PSD template  being populates with images:

The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.

  1. Size the photo collage templates for the print size you want - width, height and print DPI resolution.
  2. Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
  3. Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
  4. Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.

There are fifteen scripts in this package they provide the following functions:

  1. HelpPhotoCollageToolkit.jsx - Online Help
  2. TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
  3. CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
  4. LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
  5. InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
  6. ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
  7. ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
  8. PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
  9. BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
  10. BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
  11. PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
  12. BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder.  Images Rotates for best fit.
  13. BatchPicturePackageNoRotate.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder.
  14. PopulatePicturePackage.jsx - Used to Automatically populate a Photo Collage template Fill with the same single image and leave the populated copy open in Photoshop.
  15. PCTpreferences.jsx - Edit This File to Customize Collage Populating scripts default setting and add your own Layer styles.

Documentation and Examples

JJMack
tokuredit
tokureditAuthor
Inspiring
March 2, 2016

JJMack, I'm trying to create a panel from Photoshop CS6 / CC facing diagramming albums and to facilitate my work flow that would be fundamental.

Of all the tools that test, he walked closer to the suit my needs was the 'ReplaceCollageImage' .It Too bad he only replace an image. There is a possibility of him replacing at least 5 images ???

JJMack
Community Expert
Community Expert
March 2, 2016

You would need to design the process for which "layers" need to have their  object replace and then code a custom script.   My ReplaceCollageImage script does not actually replace the smart object layer object.  It actually replaces the current target smart object layer with a new Smart Object layer that is sized, masked and position to where the original smart object layer was sized, masked and positioned.  The replacement image can have any aspect ratio and size. The original smart object layer is deleted so the document structure is not changed.

The populating scripts can populate any number of images into a copy of an empty template PSD file.  So you may be able to create a template for your panels and populate all the required images with one of the populating scripts. There is however, a limit to the number of images a template can support.  That limit is 53 images.

JJMack