Action to replace the contents of a smart object

I use CS5/PS to create a collage created multiple images (smart object layers) that I've positioned using clipping masks.

I would like to be able to replace the content of the images, which I can do via layer > smart objects > replace contents..., but I would like to have an action for a process of 'one-click' instead of three clicks.  Problem is, when I try to record the action, it forces me to complete replacement, and then the action gets wired to replace the image used in the 'record' action and therefore does not allow me to select which image I'd like to use.

This feature is available in PS Elements, so I think it's possible.  I don't know that miss me something pretty basic, I do not know what!

Thanks in advance,

Brian

«Separate forums Photoshop Windows and Macintosh will become read-only on Tuesday, January 3«»

"Have you checked the ' enable/disable/shut down dialog box"-checkbox next to the item in the Actions Panel.

Tags: Photoshop

Similar Questions

  • How to replace the contents of the settings/passwords backup server / current browser bookmarks?

    Classic scenario: after the bookmark long manual organization Firefox Sync adds trash of its server to my laptop or tablet.

    Where can I find how to replace the content of the backup of the server by settings/passwords / current browser bookmarks? Stupid me, I put a new synchronization and lost this ability.

    It is not recommended to go back to the old version of Sync

    The old version is removed he'll stop being available soon, it takes getting used to using the new version.

    IIRC, it is actually possible to force synchronization of the old working with Fx29 & Fx30 using an old profile or preferences of piracy, but I don't think I should encourage users to try this, but it would be better than using an older version of Firefox which is really bad. In fact using an old outdated version of Firefox is so bad, that it is customary to recommend using a browser on alternative day of someone else instead.

    Firefox ESR is aimed at corporate users, definitely, at the moment, it will use the synchronization of the former. Who will update soon to use synchronization well again, and this time, I guess the synchronization of the former will probably totally frowned upon for example are not available at all.

    It is possible to use the feedback system to leave a short comment on Sync. I would recommend this making, but at least to make very many people of spirit comments that I doubt will have no effect.

  • To apply the edges of the poster to a smart object layer, but the filters Gallery is greyed out?

    Work a Photoshop tutorial on an image.  I want to apply the edges of the poster to a smart object layer, but the filters Gallery is greyed out.  Gallery of filters is also grayed out for all other layers in this project.  (PhotoShop CC)

    Hi filter Gallery,

    Please, click on the tab of the image above and choose 16-bit/channel to 8 bits/channel mode.

    Then check if the filters Gallery is always grayed out.

    Please post on the Adobe Forums.

  • Is it possible to change the text in a smart object in illustrator?

    Is it possible to change the text in a smart object in illustrator? Thank you much for the help!

    And can anyone recommend educational resources for someone (me) who is a user HAVE ten years who need to work in PS for web models? Anything other than a basic PS tutorial. Something this specific task-oriented. I'm not a beginner PS - but especially used for the correction of photo so far.

    Truly - thank you! BTW - I'm in the Suite of 6 CS and CC will not be at my disposal.

    If you double-click on the smart object icon in the palette layers in Photoshop, it will open the original illustrator file in illustrator to be able to change it.

  • Replace the contents of the caption text

    I know I done in the past - I feel like I'm going crazy!

    In any case, can someone tell me if it is possible to change the contents of a text caption with the help of an action? For example, in enter > change text caption 1 of 'No progress' to 'In progress' by using a variable. I have a simple TOC page which shows the progress of the user, and I want to update the status as moving forward. I guess this could relate to anything, tell if you want to display the current date on a slide, or the name of the users, etc..


    Just declare a variable and insert it in the legend. Then, you can change the variable said assigning via advanced Actions.

    See you soon... Rick

  • Replace the contents of the layer text by current image name

    Hi all new (I ve posted another topic about 1 hour ago )

    I have another question:

    Imagine opening an image called Gustavo.jpg (my name)

    Now, you manually create a layer of text placed at the right place and you type 'your name here '.

    This layer is selected in the layers panel.

    Now the question:

    Is there a simple way to make a script that replaces the selected type layer that s written 'your name here' by the name of the current image (Gustavo)?

    Thank you very much for the help.

    Gustavo.

    This will remove the extension...

    function main() {
    if (!app.documents.length ) return;
    var doc = app.activeDocument;
    var fnameLayer = doc.layers.getByName("Filename Layer");
    fnameLayer.textItem.contents = doc.name.replace(/\.[^\.]+$/, '');
    };
    main();
    
  • How to make the placed images/vectors remain within the boundaries of a smart object?

    Hi all.

    I have a question which I think has a simple solution, but it is difficult to find.

    I have a photo from a greeting card with rounded corners. I made the greeting card in shape a dynamic object... I want to drop my vector art of cards in the smart object to create easy shots for a website (model model style).

    My problem is this: when I stick my chart in the psb to smart object document, it remains within the limits of the object dynamic when I save it and return to the document .psd. for example if I fit my larger vector art, there will be a great vector art saved in the original psd rather than inserting in this "round card window. What I am doing wrong, that my account will be not cropping correctly? Same thing with if I try to add textures, they do not stay within the smart object... I'd appreciate your help with a simple solution. Some pictures below.

    Thank you

    Grace

    Image 1. The shape of the dynamic object.

    Screen Shot 2015-03-09 at 2.41.09 am.png

    2. the vector art. I paste in the dynamic object of psb document... Yet when I save the smart object and check related DSP, graphic design is great and not cropped within the smart object.

    I have resorted to copy my smart object layer, drag it to the top and deleting a selection reverse... but there must be a much easier way!

    Screen Shot 2015-03-09 at 2.45.30 am.png

    3. what happens when I save the smart object...

    Screen Shot 2015-03-09 at 2.48.09 am.png

    Well,'re missing you a layer mask or a clipping mask to crop the content of coverage.

    I would use a clipping mask, which makes life easier than a layer mask. As follows:

    To create a clipping mask

  • What happened to the automatic editing vector smart object function?

    Photoshop has been recently updated,

    in Photoshop previous app when the layer double click on a dynamic object that were made with copy/paste from illustrator, illustrator open editing automatically, now I get this message:

    script alert.png

    Windows 7 operating system.

    How can someone drag a layer to illustrator?

    It does not work

    bring this function please... :-), this feature is necessary

    is it something to do with the preferences of the application?

    Thanks in advance

    :-)

    If you pasted as a smart object with the option 'Add to my current library' enabled, I think that Photoshop will use the version of the library.

    Uncheck the option 'Add to my current library' to get the old way back.

  • How update you the location of linked smart objects?

    The new feature of the linked smart object has a discrete function but it fundamentally changes our workflow for the better!

    Quick question, is possible to update the paths to the linked smart objects or Photoshop it will work to? I can't see a links under window or file panel so do not know how do you sorry.

    I am about to change these files at home and want to make sure that Photoshop can find the links - but also find everything when I copy everything back on the server and work.

    See you soon

    Ben

    If a link is moved from its location, when you open the file that contains the link, you will get a dialog box asking to located the missing file.

  • CS5 is the opening of the raw files as smart object files im working

    I just new branch CS 5 and find this big mistake. When I open the raw file in Camera Raw and I opened a jpg in CS5, it always open as a dynamic object to this small jpg I opened before. The same is my CS 5 when I drag a file on the desktop, it has always finished as long as a smart object to the file im is currently working with. Normally it should open a new file, not as a smart object in this file im working already with.

    If you do not want to open images as smart objects when you drag them in Photoshop then go in Edition-> Preferences-> general and uncheck the box 'Place or drag Raster Images as smart objects'. As for Camera Raw, the button open so-called in the Camera Raw dialog box? Open a picture or an open object? You can switch between the two on the fly by pressing the SHIFT key, or you can change the preference among the workflow Options (click on the link button - like from the bottom of the Camera Raw dialog box)

  • Replace the contents of the line in GridPanes

    I have a GridPane where I want to be able to add seamlessly lines, remove lines and change line indices.

    For example, I want to be able to "push" a new element at the top of the GridPane, eventually pushing all other lines down by an index.

    The GridPane class is no method replace() or interface to my knowledge. I can reference the individual nodes in the pane, then I suspect a possible solution would be to use the getRowIndex (Node) and then update all the nodes on this line directly (all I need is a Label.setText). However, due to the size of the pane, not really he should be running this code on the thread of the application. For a component MxN, I have to loop through the lists of N of M knots, to find the right line, then update and repeat this for all the nodes, for a total of MxN updated.

    Another solution could be to redraw the whole GridPane with updated information, clear the current scene and redesign with a new scene containing the GridPane update.

    If it's possible, but I think both suggest approaches seem a little kludgy and I was wondering if someone could suggest a more elegant solution.

    [Edited: changed my opinion about the best way to do it.]

    The javadocs for GridPane state explicitly that the nodes may overlap in the grid, so there is no harm in having nodes temporarily have the same row and column constraints. Since you seem to add to the "top" and will therefore need update the row index for almost all the nodes in any event, there is little or no improvement in performance to the iteration only nodes 'below' the new line. If you do not lose anything by using Kyle approach rather than keep a "cache" of the child nodes of the GridPane.

    It works very well. The performance seems ok until a couple of thousand knots; After about 4 000 knots, it gets a little lazy so if you have more than 2000 or so you will need a more sophisticated approach.

    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.control.ScrollPane;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.GridPane;
    import javafx.scene.layout.Priority;
    import javafx.stage.Stage;
    
    public class MutableGridPane extends Application {
    
      private final int NUM_COLS = 8 ;
    
      @Override
      public void start(Stage primaryStage) throws Exception {
        final GridPane gridPane = new GridPane();
        final ScrollPane scrollPane = new ScrollPane();
        scrollPane.setContent(gridPane);
        addHeaderRow(gridPane);
    
        // Add 250 rows to test performance:
        for (int i=0; i<250; i++) {
          addNewRow(gridPane, 1);
        }
    
        final Button addButton = new Button("Add a row");
    
        addButton.setOnAction(new EventHandler() {
          @Override
          public void handle(ActionEvent event) {
            addNewRow(gridPane, 1);
          }
        });
    
        final BorderPane root = new BorderPane();
        root.setCenter(scrollPane);
        root.setBottom(addButton);
    
        Scene scene = new Scene(root, 600, 600);
        primaryStage.setScene(scene);
        primaryStage.show();
      }
    
      private void addHeaderRow(GridPane gridPane) {
        for (Node node : gridPane.getChildren()) {
          GridPane.setRowIndex(node, GridPane.getRowIndex(node)+1);
        }
        for (int colIndex=0; colIndex= rowIndex) {
            GridPane.setRowIndex(node, currentRow+1);
            if (currentRow+1 > numRows) {
              numRows = currentRow + 1;
            }
          }
        }
        String color = numRows % 2 == 0 ? "lightskyblue" : "cornflowerblue" ;
        for (int i=0; i
    
  • Search and replace the contents of the excel file

    Hello

    I have the list in the excel file that needs to replace. The script should read the excel then replace to open InDesign documents.

    The excel (*.xls) file has two columns, the first column has our old. and the second column has the new numbers to replace.

    Ex:

    Column 1 column 2

    (Research)               (Replace)

    -----------------------------------

    4257/2 = > 1/2

    4257/3 = > 1/3

    4257/4 = > 1/4

    ....

    3257/2 = > 1/5

    3257/3 = > 1/6

    3257/4 = > 1/7

    ....

    4457/4 = > 2/2

    4457/5 = > 2/3

    4457/6 = > 2/4

    4457/7 = > 2/5

    ......

    Thanks in advance,

    Thiru

    Hi Poirier,

    I modified your request for entry of csv file.

    Please save it as the xls to text delimetted tab. See the snapshot below.

    Then, run the provided scripts it will change the values.

    var myFile = File.openDialog("Choose a tab delimitted txt file:");
    if (!myFile){
    exit();
    }     
    
    myFile.open('r');
    while (myFile.eof==false){
         line=myFile.readln();
         line = line.split("\t");
         myFind = line[0];
         myChange = line[1];
         app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
         app.findGrepPreferences.findWhat = myFind;
         app.changeGrepPreferences.changeTo=myChange;
         app.documents.item(0).changeGrep();
         app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
         }
    myFile.close();
    

    THX

    csm_phil

  • Framework for the content missing (in an object style)

    Unfornunately I found no option 'Fit block content' in an object style (Indesing 2014)

    What is the reason?

    frame.jpg

    This choice is contextually available.

  • How to paste the contents of a video object and spread them out?

    I have a video and I want to crop the part of it and make him play elsewhere on the screen.

    Is it possible to do so, perhaps by substituting the function to draw the fate of flash.media.Video?

    Thank you.

    You can use the bitmapdata class's draw() method.

  • Saving smart objects

    How to register a dynamic object to create a jpg for electronic mail without losing the smart object?

    Hi lsgrn2,

    You can follow these steps export the contents of a smart object:

    1. Select the smart object in the layers panel, and choose layer > smart objects > export contents.

    2. Choose a location for the content of the dynamic object, and then click Save.
      Photoshop exports the placed smart object in its original format (JPEG, TIF, PDF, or other formats). If the smart object was created from layers, it is exported in PSB format.

    Here is a link to our page of Photoshop help create dynamic objects.

    Alternatively, if you just want to share a JPEG copy of the publication that you created, you can go to the file--> save as. From there, you can select the JPEG format and save a copy of the file created (keeping the separate original Photoshop file). In this way, you can attach a JPEG file without losing the smart object original.

    I hope this helps!

    Clarice

Maybe you are looking for