Action for Replacing Contents of a Smart Object

I am using CS5/PS to create a collage created of several images (smart object layers) that I have positioned using individual clipping masks.
I would like to be able to replace the contents of the images, which I can do via Layer>Smart Objects>Replace Contents...,   but I'd like to have an action for a "one-click" process instead of three clicks.  Problem is, when I try to record the action, it requires me to complete the replacement, and then the action gets hard-wired to replace the image used in the action "record", and therefore doesn't allow me to select which image I'd like to use.
This functionality is available in PS Elements, so I believe it can be done.  I'm sure I'm missing something pretty basic, I just don't know what!!
Thanks in advance,
  Brian

»The separate Photoshop Windows and Macintosh forums will become Read Only on Tuesday, January 3rd.«
Have you checked the »Toggle dialog on/off«-checkbox beside the item in the Actions Panel?

Similar Messages

  • Replace content of multiple Smart Objects

    Here's simplified version of my dilemma: (Photoshop CS5.1)
    A file contains 3 instances each of 2 unique Smart Objects. Is it possible to Replace Contents of all 6 objects so that they share a common source content?
    Seems simple. Doesn't work.

    The only other thing I can suggest is to post in the Photoshop Scripting forum to see if the scripting wizards there have a script to solve your issue. 
    (I couldn't script my way out of a paper bag myself.)
    http://forums.adobe.com/community/photoshop/photoshop_scripting

  • How do you unlink contents of dup Smart Object layer from it's Orig Layer?

    Say you are in camera RAW and you open the image as a Smart Object.
    THen duplicate that SO layer.
    I want to edit the RAW settings on the duplicate SmartObject layer to be different than the original SO layer.
    The problem is that when i do that, BOTH layers are updated with the most recent adjustment in RAW.
    I want only one to change and the original to stay the same.
    How do you unlink them so they act independent of one another when you edit the contents of the smart Object.
    Thanks in advance.
    -josh

    Yes, theres two cpmpletely different ways to duplicate Smart Objects. Command J or duplicate layer method which merely creates INSTANCES of the same Smart Object. This has a whole variety of different uses, and means that any edits to the smart object will reflect in all its instances.
    To duplicate the CONTENTS of the object, there is only one way to do it and Doug has told you how.
    Would be nice if command OPTION J did this as an alternative. And that there was some visual distinction in the layers panel between duplicated objects, objects with linked instances, and seperate objects.

  • Lens-blur / Tilt-shift blur grayed out for a video clip as Smart Object

    So instead of using Actions and apply the said effects to hundreds, even thousands of still frames, I was aware you can apply filters directly onto a rendered video clip in Photoshop.
    I followed the instructions by opening the video which I created with "Open Image Sequence" in QuickTime, converted it into a Smart Object. But when I try to apply the said blur effects, they are all grayed out.
    What am I doing wrong? Is this something CS6 can't do but CC can?
    Please advise, thank you!

    I'm kind of restricted as to the height and position on the indoors shots. I have my eye on positions but it means climbing up on things and getting into corners but, if needs must.
    I was using alpha channels as the angles I've used so far don't lend themselves to making a straight mask. I'll stick with it though, it might look better on just the automated machine with no people.
    Maybe being forced into working with odd angles and positions might give the video something unique over the rest, probably not though. I guess there's only one way to find out.

  • Post-actions for Kpro-Content Server after Sap DB Copy

    We have a Sap system based on Web As 6x connected to a Sap Content Server to store originals.
    We copied back this Sap system to the quality system.
    Now the Sap quality environment refers to the same Content Repository of the production, and we want to modify this.
    From this environment it should not be possible to access or to modify the originals of the production.
    More in general, wich post-actions can be done on the Sap target system after a DB copy where the source system is connected to a Content Server ?
    For example, which tables can be cleaned up ?
    regards

    Hi,
    Pls see the below link if this can help you.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8d/3e704c462a11d189000000e8323d3a/content.htm
    Anil

  • Update Modified Content (Linked layers / Smart objects)

    Hey guys,
    Is there anything in the API for handling the new Linked layers? (CC 14.2)
    Specifically, I want to be able to Update Modified Content iteratively to handle lots of nested links.
    It doesn't have to be pretty, just functional, as this is a very complicated task to do manually.
    Cheers

    Crude, but maybe this helps:
    // 2014, use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var applicationDesc = executeActionGet(ref);
    var theXMP = applicationDesc.getString(stringIDToTypeID('XMPMetadataAsUTF8'));
    var theFiles = new Array;
    var theArray = theXMP.split("<stRef:filePath>");
    for (var m = 1; m < theArray.length; m++) {
    theFiles.push (theArray[m].slice(6,theArray[m].indexOf("</stRef:filePath>")));
    if (theFiles.length > 0) {alert(theFiles.join("\n"))};
    Edit: One problem, though: the list in the XMP metadata may not be up to date if the file has not been saved since the last linked SO has been placed or embedded.

  • Program error after using connected smart objects

    Hello, dear friends. I need your help.
    My problem is:
    1. I placed linked smart objects in to the photo and then tried to replace content of this smart object. Suddenly program shut down. And If I try to do the same one more time the same happened.
    2. Some times I could do this operation till the end but replaced content didn't save my changes made for this smart object. And then program shut down again.
    This problem stops my work, that is why I'll be pleased to hear any solution.
    Thank you.

    What have you done for trouble-shooting so far? (Restoring Preferences after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved might be of special interest).
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    Also please read this (in particular the section titled "Supply pertinent information for quicker answers"):
    http://forums.adobe.com/docs/DOC-2325

  • How can I duplicate a smart object and then edit it, without affecting the original?

    I have a vector element from illustrator that I am placing in a tshirt mockup in photoshop. I have the layout essentially how I would like, but I am trying different color variations. I would think to just duplicate the first placement and then edit the color of the resulting copy, but this affects both the copy and the original. I looked into it a bit further, and found that I should try the "replace contents" option under smart objects, and that this would change the copy. So I go back to illustrator, made a copy of the original vector, and then made the color change I had in mind, and then saved it as a separate document that I could then use in replacing the contents of the copied. This however, is still affecting both smart objects!
    I have tried this as both linked smart objects and embedded smart objects without success.
    Ultimately, I simply want to maintain the position of the original layer with the duplicated and edited layers. If you know of a better way, please share!

    I'm on CC on a Mac.
    What 21 is talking about is making some sense.
    I am able to create new smart object via copy, then create a variation on the original file linked in the parent smart object. Then I save that from illustrator with a different file name. Then I go back to photoshop and replace contents of the new smart object, linking it to the newer illustrator file.
    This gets around the problem, but it takes a few more steps than the same thing did it in earlier versions of photoshop.

  • Replace content smart objects doesnt work properly.

    Hello fellow Photoshoppers,
    Currently i am working on reusable album templates with smart objects. At first i was very enthusiastic but this was soon to end. as the replacing doesnt work properly.
    I made the smart object by using:
    1. > file
    2. > place
    then i try to replace the content by using.
    1. > layer
    2. > smart objects
    3. > replace contents
    the old image should get replaced by the chosen file and matching size, smart layers etc. However when i perform the same actions my image gets replaced but it is not the same size as the smart object it replaced. This makes the entire template useless as it would take far too much time resizing every single image. inspired by another video I also tried double clicking the layer and tried replacing the image in the editing sceen by dragging another file on top of the smart object. Again, it does not spread out to the full smart object size and i'm stuck with a small image in need of extra work.
    Needless to say, very frustrating.
    Any thoughts?

    Are you sure you understood how it is intended work?
    That is an interesting question, i have no experience with photoshop as i bought CS5,5 just a week ago and have no experience with any of the previous versions either. All info regarding how to make such a template i found from various tutorials, i posted one below. When they do it the image get scaled perfectly. Now since they use some smart filters in the tutorial i applied them aswell to see if this would fix the problem but it did not.
    http://www.picturesocial.com/video/wedding-photo-album-templates
    Are the images you want to switch in at least always of the same width to height-relation?
    I checked both files for consistency and discovered they were shot on different camera's. One file ( the origional smart object ) was cropped form a 21,0MP file and the other was croped from a 10,1 MP file. Both images were cropped to a 2x1 ratio. Having discovered the difference in pixel amount i cropped a different 21,0 MP file to 2x1 ratio and checked both files for their exact dimensions (both images are equal in size with 5616 x 2808 pixels) and replaced the content with the newly cropped file which gave a much better result. However, the image was slightly smaller in photoshop leaving a small gap where the origionally placed smart object lined up perfectly. I turned the situation around and placed the 10,1MP cropped image as the smart object and replaced the content by a 21,0 MP cropped image. As to be expected i ended up with a new image much larger then the smart object. So the smart object does not constrain the files to the dimensions set. As it turns out it only scales the replaced content relative to the size of the origional content of the smart object.
    I just need a reusable template with objects that:
    - cannot be moved once locked ( if possible) but can have its content replaced
    - scales the replaced content to the predefined dimensions
    - needs no prework like cropping to the same aspect ratio as the smart object content. ( i want to be able to place a landscape sized raw (3x2) on any landscape format  (2x1 / 16x9 / 4x3 or whatever) i find it acceptable to having to crop a portret to landscape orientation first before being able to replace a landscape.
    now ive been searching for more info and some people say indesign is much faster in making album pages so I am installing the program as we speak hoping this will be the solution.

  • How to replace a Smart object content with folder of JPGs

    Greetings!
    Sorry if that title is not clear. I have a cover design template (see example). The image is a transformed Smart Object. I want to streamline my workflow.
    Say I have a folder of jpgs, and need to replace the smart object of the template with the new cover jpg, then save for web as a JPG comp. Repeat.
    I already have a nice "scale layer to current canvas size" script from Michael L Hale. Which would be necessary in case the jpg is larger or smaller than the Smart object's content it will replace.
    Any thoughts if this could be done?
    Michael's resize script is here: http://forums.adobe.com/thread/1233856
    Thanks
    Maxi

    Remember in that other tread I wrote you would need to take aspect ratio into account if you don't want distortion. You do not want distortion placing in images.   You also do not want to place in all image in canvas size.  If your images vary in size you do not want to replace the contents of a smart object layer for the smart object associated transform to work correctly you need the replace the embedded object with an object with exactly the same size of the original embedded object.
    Also in that other thread I gave you code from one of my Photoshop Photo Collage Toolkit.  You seem to be creating a collage. You man want to look at my Photo Collage Toolkit.
    Templates are very easy to create for my Toolkit's scripts to work, You just need to follow four simple easy rules.
    The Four Rules:
    Size the photo collage templates for the print size you want - width, height and print DPI resolution.
    Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
    Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
    Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
    So your template would be easy and look like this, Red rectangle outlines my scripts.
    You would then use one of the scripts like interactive popopulate select the template then hit create collage
    The script would the open the template copy it the go to full screen show you a cyan mask as to where the next image will be placed, And put you into an interactive select image dialog.
    Once you select the script will place in the image resize and position it the put you in an interactive transform so you can tweak the position and size. The Populated collage will remain open in Photoshop.
    Documentation and Examples

  • Replacing smart object content using Droplets ???

    Hi,
    I have a .psd with a smart object as one of the layers.
    I could easily go to Layers>Smart Objects>Replace Contents...
    but I have a couple of thousand files to replace.
    Is there a way to create a droplet so i can just drop the files into it
    and it automatically replaces the content of the smart object
    then saves out a new file for me?
    This would help me tremendously.
    I would appreciate any help.
    Moo...

    In my opinion this task will need some Scripting unless the Layer-names and Layer-structure are identical in all the files.
    One should be able to include the Script in a Droplet, but one might just as well use a dialog within the Script itself, I guess.
    If you should find no other option you might be able to get some help in the Photoshop Scripting Forum.

  • What is benefit for make a SMART OBJECT

    Dear all,
    What is the benefit for make a smart object in photoshop
    Manoj

    Have you even bothered consulting the Help?
    Anyway, the advantages of Smart Objects are numerous:
    • multiple instances of a SO in a containing document that update simultaneously on saving an edited SO (please note that a SO once placed has no connection to the external file but resides inside the containing document)
    • the possibility of placing vector content as Vector Smart Objects (though this will output as pixels)
    • non-destructive application of Filters
    • non-destructive application of transformation, warp, puppet warp (not all of these are available for Vector SO, but by converting such a one to a regular SO they become applicable)
    • combination of elements of different color spaces
    • the ability to Replace Contents of SO (for example when faking as-of-yet non-existent products by mapping packaging design elements onto images of a blank container and the design is likely to change)
    • Stack Modes for certain combinations of photographic images

  • Setting a Conditional Action for Pre-Test questions: Skipping Content Slides

    OK boys and girls, let's see if this is even possible within one course SCO, or if this a multi-SCO solution (which means I'm toast, because we don't have the multi-SCO aggregator)?
    I want to set up a prescriptive pre-test. In my ideal world, answers to each individual question would either enable or disable the content slides connected to the question. If the user passes the pre-test, they could opt to skip the prescriptive stuff and complete the course. If the user fails the pretest, they would have to view the enabled content.
    Is this even possible in a single SCO world?
    Justenuf

    Jim belongs in that pantheon of good guys as well, so many here have pointed me in the right direction and helped me move forward with the capabilities of this software. And, in that spirit - here's my work around for the pretest/post test in a SCORM 1.2 environment:
    Created an entrance slide that allows opting totake the pretest or not - but only allows you to take it once.
    Created one test (take off the question x of x widget) split it and slide the content in between it. In this case, 10 questions with 5 in each set.
    Titled the first set of questions as a PreTest and the second set as a Post Test.
    Set my passing score at 4 correct. (the user only needs to get 4 out 5 on either set correct to pass - and I'm setting up an action that only allows the user to see the questions they missed if they fail the pretest.)
    Created variables for each "pretest" question and set them at 0. Created on Enter advanced actions on each slide following a question that toggled the variable to 1 if the question was answered correctly  if "CpQuizInfoLastSlidepointScored is equal to 1" then "Assign Question<x> with 1"
    Created an On Enter advanced action for each content area slide "Skip #" that allowed prescription:
    "If Question # is equal to 1 or cpQuizInfoPassFail is equal to 1, then Go to Next Slide"
    Only the content connected to the missed questions in the pretest is seen.
    Copied the same On Enter advanced action the Post test questions and renamed it "SkipPost #" that allowed prescription:
    "If Question # is equal to 1 or cpQuizInfoPassFail is equal to 1, then Go to Next Slide"
    Only the questions related to the reviewed content are seen
    The sum total of these activities is the following -
    The user can choose to take the pretest and complete the course by gettiong 4 or 5 questions correct and jump to the exit page.
         If the user takes the pretest and scores lower than 80%, the content for the missed questions is viewed and the user must answer the questions regarding
         that content. The user passes the course when he/she answers the fourth question correctly.
    The user can choose to view the content, take the post test and pass the course by answering 4 of 5 correctly.
    it's running right in preview, in web browser preview and on my LMS previewer, with one navigation error.
          the error: after failing the pretest, taking the prescribed content and anse wering the questions correctly, the course occasionally jumps to the results page
         and s displays a failure message, then freezes in place. it does NOT happen each time, which is why I am cy urrently scurrying back to my happy place to dwell
         on this mystery awhile.
    Justenuf

  • Smart object in template: saving off each layer as a png.

    I know someone must have asked for this before, however, I'm not sure how to phase it perfectly. I have provided many images to help me convey what I want, and I hope that helps. I make many mockups for smart phones and the like. Most of the time, when I present my work, my employer wants to see it "in the device".
    I have a template of a phone (I grabbed an iphone just for the sake of mockups), and I load all my mockups into the smart object that makes up the phone's screen in the template. However, saving out each mockup can become very time consuming. Is there a script out there what will save out each screen once I have added all my content to the smart object? (In my example, the final result would be 3 pngs of the phone displaying one of the 3 screens)
    Thanks!

    It there is no perspective distortion need like iPhone example a straight on perspective.  That would be a snap to do with a Photo Collage Template PSD and a batch script.  The template  could be as simpla as a background image of your iPhone shot straight on and an alpha channel the maps to the iPhone display. For example BatchOneImageCollage.jsx However that script would save a set of PSD files would contain a background layer. If you want a set of files the template would need two layers a plain white background layer a layer above it a cutout of your iPhone with the screen also cutout an missing., and the mapping alpha channel.  The saved PSD file would the need to be processed with the Image Processor Pro script the save PNG for the PSD and include an action that deletes the background layer or turns off its visibility.
    Photo Collage Toolkit UPDATED Made Rotate for Best Fit an option in PasteImageRoll.jsx Edit to customize your default settings.
    Photoshop scripting is powerful and I believe this package demonstrates this.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    Documentation and Examples
           There are twelve scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    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.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    PCTpreferences.jsx - Edit This File to Customize Collage Populating scripts default setting and add your own Layer styles.
    Four Rules Templates need to follow:
    Size the photo collage templates for the print size you want - width, height and print DPI resolution.
    Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
    Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
    Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
    Example:

  • Getting the filename of a placed image inside a smart object

    Hi
    I'm wondering if I can get any help with a problem I'm trying to overcome for a friend of mine.
    My friend is a photographer who does a lot of schhols work (pupil portraits) and wants to create a little document similar to this (very simplified) version:
    I'm trying to help him to create a batch process so that he can make this take up much less of his time!
    Here's where I've got to so far. I've created the layout above which is essentially a smart object (from an external file) manipulated in a couple of ways.
    The workflow as I see it at the moment (although I'm wide open to suggestions, and I'm having a bit of Friday brain) is this: I generate an action that replaces the content of the external file with the contents of (each file in his incoming list, sequentially).
    That file then comes back into the layout above and a new (flattened) copy is saved out from there.
    Rinse and rerpeat through the list of incoming files.
    I can just about make that bit happen using actions, but here's what I can't get - the filename of the incoming file (the one that's placed in the smart object). Can I can use a modified version of the AddFileName script to generate a text layer based on the filename of the placed contents in the smart object? Does any of that make sense? I'm reading this back to myself and even I'm not sure! ho ho.
    My lack of logic/coherent sentence structure here is what probably holds me back in any eforts I have made in getting into scripting.
    I'd appreciate any help that could be offered.
    Thanks.
    Fenton

    Ah - alas it sems not to be. I think I am going to have to come up with a different workflow and by extension, solution. My current thinking is that I need to have an input folder for the images to be used in the layout, and an output folder for the results to be saved into, along with the layout.psd (as above) all housed in the same folder. Then I need (help) to write a script that does the following:
    Checks that the layout document is open (that bit is easy enough)
    if(documents.length==0){
       alert("You need to have your layout template open (-layout.psd-)")
    }else{
        // Do next bit here - and what I'm trying to do is described below.
        // Hopefully by typing it out I might start to get it straight in my head
        // Any help with any part of this process is greatluy appreciated
        // I'm trying to learn!
    Then what I think the script needs to do is tocheck the contents of the input folder and find out how many files are in it then set this as a variable, to set the length of a loop, maybe? Or should it load the filenames as an array and work through them sequentially?
    Once that information is established, there is a smart object on the first layer that needs to be updated with the contents of the first file - my thinking s that this is done by the script opening each image, and then copy/pasting into the smart object, merging down (so I don't end up with an enormous multi-layered file). My reason for thinking this would be a good idea would be that I could just run a quick check to make sure that no landscape pics have sneaked in there and if they have, rotate them (which again, is pretty easy as even I could do that bit, too).
    doc = activeDocument;
                if (doc.height < doc.width) {
                  doc.rotateCanvas(90);
                } else {
                  // Carry on
    This will update all of the smart object instances throughout the layout template.
    Then the text underneath the main image needs to be updated with the filename of the file that has been pasted in the smart object, and after that a [flattened] copy saved out to an output folder.
    Rinse and repeat for the remaining images in the input folder.
    Any thoughts?
    Thanks
    Fenton

Maybe you are looking for