Replacing or swapping a layer

Is there a way like in After Effects to replace or swap a layer in a template for daily News Premix. I know how to do it with new layers, copy my alpha ... etc. Just wondering if there was an easy way ?
Does this make sense ?
thanks
JR

If I understand what you're trying to do, the best way may be to use File > Place to import the template's original layer content as a Smart Object, so that next time you can use the Layer > Smart Object > Replace Contents command to swap in a different image file from disk into the layer.
>This is the Photoshop Forum. I suggest you ask over at the After Effects Forum.
JR2010 said "like in After Effects," not "in After Effects." In fact, it's because he said "like in After Effects" that the Smart Object idea came to mind, since the way layers work in After Effects is more like Smart Objects in Photoshop than a regular Photoshop layer would be.

Similar Messages

  • Replace colors on multiply layer with predefined color

    Hello,
    This is my first time here and I've tried to find an answer to my question but haven't been able to. Maybe someone can help me whith this.
    My process:
    I scann my artwork (linedrawing)
    I color my artwork with multiply mode on different layers (as i'm sure many do)
    Now what I haven't been able to figure out is how to replace the color on this multiply layer with a predefined color from my colorswatch.
    I've found tutorials on how you can change colour  around by using hue/saturation and stuff like that but I have a predefined colorpalette. So I just want to replace a certain color blue I always work with, for a specific color green from my palette.
    I've used the replace brush tool but the colors that appear are a blend of the first color and the second color I use.
    So my solution so far has been to set up a new layer and color again. I'm hoping there is an easier way.
    Thanks in advance for your suggestions!
    Kind regards,
    Lineke from Amsterdam

    You could have a Color Fill layer for each color selected from your Swatches, with the blending mode set to Multiply, and the layer mask filled with black. Then, paint on the mask with white to do your coloring.

  • Best way to replace contents of a layer with higher res image

    I can do it, but I was wondering if there is a better way.
    Large PS file (CS6 and CC) half a dozen texture layers using low res images. Several have blend modes, transparency and even masks. I now have the same images in high res. I want to replace just the image, but not lose my blend/transparency, or masks.
    Any thoughts?
    Do I bring in the high res layer, copy the mask over etc? Then delete the original?
    Max

    Try this.
    Convert the low res images to Smart Objects. Layer > Smart Objects > Convert to Smart Object.
    The replace the contenst of the smart objects. Layer > Smart Objects > Replace Contents...
    This way you can replace the low res images with the hi res versions. Provided they are the same crop and aspect rarion your mask should be fairly good to go. I say fairly good as you may have made some adjustments (eg. feathering) based on the resolution.
    The blend modes and transparency will be unaffected.

  • Replacing/Updating/Swapping Photo in iMovie 08

    I have created an iMovie file with the audio, transitions, and timing just how I want it.
    I realized that I needed to go back an touch-up some photos that I imported to use in the movie.
    I selected the clip with an image I needed to update, selected "Reveal in finder" to see the source image in the finder. I touched up the photo file but the touched up file does not update the image in the iMovie.
    Is there a way to update/swap/replace an image in a clip without having to drag the new updated image into iMovie like a separate clip and apply all the duration/transition attributes to it?
    I'm hoping that iMovie is like most graphic applications in that it links to an external source file and when you update the source file it updates inside the iMovie file as well.
    Thanks!

    You will need to drag it in again AFAIK.

  • Replace images on specific layer

    Hi,
    till now i used the Script-function in InDesign only for "findandchange"-Actions. It works fine and is very time-saving.
    Now I would like to replace images on specific Layers, like I do this with textcontent with the "Findandchange"-Script.
    Is this possible?
    I try to explain...
    Example:
    - Find all images "image-a1.tif"(path:folder/folder/image-a1.tif) on specific layer "mylayer"(or only activ and not locked layers)
    - Replace all this images with this image "image-a2"tif(path:folder/folder/image-a2.tif)
    - Find all images "image-b1.tif"(path:folder/folder/image-b1.tif) on specific layer "mylayer"(or only activ and not locked layers)
    - Replace all this images with this image "image-b2"tif(path:folder/folder/image-b2.tif)
    - Find all images "image-c1.tif"(path:folder/folder/image-c1.tif) on specific layer "mylayer"(or only activ and not locked layers)
    - Replace all this images with this image "image-c2"tif(path:folder/folder/image-c2.tif)
    Background Info:
    These images have all the same size and resolution. They distinguish only in content (english-/france/german elements).
    It's a "multilanguage" InDesign-Document. Every "Languagecontent" have its own layer.
    Thanks for helping...

    Hi,
    Yes you can. I.e using dialog box.
    It could be like this:
    myDoc = app.activeDocument;
    myGraph = myDoc.layers.item("graphic").allGraphics;     // modify layer name
    for (k=0; k<myGraph.length; k++)
         oldLink = myGraph[k].itemLink.filePath;     //whole path
         oldFileName = File(oldLink).name;              //only file name
        newFileName = myDialog(oldFileName);     // new name is read from dialog
         if ( !newFileName ) continue;                         // if user press "cancel" button - no action
         newLink = File(oldLink.replace(oldFileName,newFileName) );    // replace file names within path
         if (File(newLink) instanceof File)                     // if wrong newLink - no action
            myGraph[k].itemLink.relink(newLink);     //relink graphic
    function myDialog(oldName)
        var myWindow = new Window ("dialog", "Replacing images");
        var myInputGroup = myWindow.add ("group");
        myInputGroup.orientation = "column";
        myInputGroup.alignChildren = "left";
        myInputGroup.add ("statictext", undefined, "Old Name: " + oldName);
        myInputGroup.add ("statictext", undefined, "New Name:");
        var myText = myInputGroup.add ("edittext", undefined, ".eps");
        myText.characters = 20;
        myText.active = true;
        var myButtonGroup = myWindow.add ("group");
        myButtonGroup.alignment = "right";
        myButtonGroup.add ("button", undefined, "OK");
        myButtonGroup.add ("button", undefined, "Cancel");
        var OKbutton = myWindow.show ();
            if (OKbutton == 1) myRes = myText.text;
            else myRes = false;
        return myRes;

  • Replace layer from history feature.

    Here's a little thing I've been missing - the ability to replace a layer, with the active history step easily.
    As an example lets say you have an adjustment layer, which you recently modified. You compare it with the original snapshot, the one created when you open the file, and you say 'hang on what I did this session looks like complete rubbish, I want to replace it with the layer from the snapshot quickly'. A control click and the option to choose "Replace Layer From History" would be a quick way to do this. This would of course work with any layer.
    I'm of course aware that there is a workaround where you can create a new document from any snapshot, and then drag to replace and delete the old layer - but this one click method would be much appreciated.
    Thanks, appreciating your love and support.
    xxx

    Thanks Chris…
    • I guess mode conversions would require an automatic or warned conversion for pixel layers.
    •  No mode conversion can be done retaining adjustment layers so I'm not sure how that would be a problem, because there would be no current layers in the file that relate to the history state.
    Maybe if you convert the mode the whole operation just becomes impossible/ grayed out?
    •  Layer oganization - hmm I guess thats one which I hadn't considered. I assume history states must have 'identifiers' attached to each layer, othewise the history brush wouldn't work. So relacing an entire layer with history, similar to paste with history, shouldnt be that difficult unless I'm missing something.

  • Duplicate a composition layer in the timeline, at same time make new comp

    Hi,
    I know that in the project panel I can do Control D and make a new comp. I know that in the layer panel I can do control D and make a new layer for a different comp, which keeps all the animations I have applied to that comp.
    I also know that after I've duplicated that comp in the Project Panel I can Alt drag it to the other comp in the timeline and replace, or swap the comps.
    What I want is to remove a step.
    I have Comp A
    In the timeline I want to duplicate this comp and at the same time create a new Comp B.
    What I want is to be able to duplicate the layer in the timeline, and while doing so also create a new composition which would show up in my project panel. Basically I am trying to skip the extra steps of duplicating layer, going to project panel, duplicating comp, then Alt dragging to swap them.
    Is there a shortcut for this?

    Mylenium, why would you think there should be no shortcut for this?
    You are forgetting, that pre-comps in themselves can contain any number of pre-comps inside pre-comps inside pre-comps.... You would have to find a way of taking care of those scenarios which is a major logic challenge and effort. that being so and to avoid potentially risky user operations that might ruin entire projects, it is much safer to not allow this. I would agree with Rick that a simple script that mimics the manual steps and tied to a function key is probably as good as it gets, but still, even there the underlying deeper problem still exists, so you have to work very controlled.
    Mylenium

  • Iphone 4s wont power on after lcd replacement

    A friend dropped his phone quite badly and required a lcd replacement, after swapping it over, when I power it back up it just constantly flickers? Like its trying to power on. There is life in the battery.
    Anyone have any suggestions on this? Thanks

    Good to hear it all worked out for you

  • What method replace handler(before jheadstart 9.0.5.1) in jheadstart 10.1.2

    What method replace handler(before jheadstart 9.0.5.1) in jheadstart 10.1.2.0.
    Does anybody tell me how to do it ?
    Thanks for your help.

    The handler layer as provided in JHeadstart before ADF existed, has now been replaced with ADF databinding layer. Whereas in the pre-ADF days, you would add custom methods to JHeadstart handlers, you now add these methods to the application module impl class, and then you can drag and drop these methods onto your page or struts action. The ADF binding layer will ensure that your method gets called correctly.
    You might want to check the following link with more info on adf data binding:
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/ADFBindingPrimer/index.html
    Steven Davelaar,
    JHeadstart Team.

  • Layer group visibility toggle

    With the help of this forum I obtained a script  which toggles the visibility of a specific layer without  selecting the layer.
    I would like to find out if the same functionality can be achieved for a layer group.
    In other words can script toggle the visibility of a layer group with out actually selecting the layer group?
    I understand some parts of Photoshop are not scriptable and wan to make sure this isn't one of them before I embark in creating the script.

    I have a script that does what you need. Can't remember if I obtained it from here, but I do know that the scripting guys in here are geniuses and can help you out with almost anything. That said, here is the script that you need. All you need to do is replace the three "Insert Layer Name Here" portions with the name of the layer you wish to toggle on/off. Don't thank me, thank whoever wrote it, (most likely someone here)
    var targetID = getLayerIDByName('Insert Layer Name here');
    if(undefined != targetID){
        if(getLayerVisibilityByID( targetID ) ){
            hideByName('Insert Layer Name here');
        }else{
            showByName('Insert Layer Name here');
    function getLayerIDByName(name) {
        try{
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "LyrI" ));
        ref.putName( charIDToTypeID( "Lyr " ), name );
        return executeActionGet(ref).getInteger(charIDToTypeID( "LyrI" ));
        }catch(e){}
    function getLayerVisibilityByID( id ) {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
        ref.putIdentifier( charIDToTypeID( "Lyr " ), id );
        return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));
    function hideByName(name) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putName( charIDToTypeID('Lyr '), name );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Hd  '), desc, DialogModes.NO );
    function showByName(name) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putName( charIDToTypeID('Lyr '), name );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    EDIT- whoops, I just realized this is only for layers, not groups. But hopefully it's a starting point

  • Add text layer to all files in folder: what about files that already are searchable?

    Hi everyone
    I'd like to make my scanned PDF documents searchable using the OCR feature of Adobe Acrobat X Standard. The scanned PDF files are stored in one folder (or its subfolders respectively). In principle I could just go to the OCR feature, tell it to add that folder to the OCR conversion list and replace all PDF files in it with searchable versions.
    Some of the files in the folder, however, already are searchable because they were created from Word files for instance. My question is: What will Acrobat's OCR feature do with these files that already are searchable? Will it leave them unchangend? Or will it create new files and replace their existing "text layer" with a new text layer?
    One of the reasons for my question is, that the existing "text layer" is free of recognition errors by definition (because it has been added by Word's conversion feature). This means, a new text layer added by Acrobat's OCR feature can only be equal or inferior in quality compared to the existing one. In the latter case, it wouldn't make sense to replace the existing "text layer".
    A second reason is that some of the already searchable files have security properties (i. e. signatures). What is going to happen to them when the OCR feature creates a new file?
    Thank you for your answers!

    The usual thing is that Acrobat will object, saying the file contains "renderable text", and do nothing.
    OCR on a file with signatures will, at best, invalidate the signature. More likely, all trace of the signature will be deleted, and it will attempt to do OCR on the visual appearance, finally leaving a graphic. OCR is  not really intended as a late-stage process.

  • Layer Visibility Javascript

    Hi,
    I am working on a model of a dovetailed drawer. It is a simple model, but it must be made to show different design options - to be able to switch them back and forth.
    I have tried to use Daniel Beardsley's "Build Your Own Car Prototype" as a template for my own presentation. All seemed to go fairly smoothly until it came time to swap the Layer Visibility code around to my own needs.
    I want the user to be able to choose between three different deisgn options and so I put each mesh on a separate layer. However, I do not get the effect I am seeking. The console returns:
    TypeError: context3D.LayerManager has no properties
    2:AcroForm:Button2:Annot5:MouseUp:Action1
    How can I set this up correctly?
    - David

    Thank you very much, Daniel, for your further input.
    I have changed the document as you suggested, however it did not work for me. Perhaps I omitted something vital.
    Looking over the layers.js carefully I see that at the top a number of methods are named in the Layer Object Constructor, and that at the bottom a number of functions are offered as options for the user of the script. It would seem to me that the functions use these methods to make changes in the layers of the 3D object via its source code.
    Considering the above, it seems best to me that I use the functions offered and then define the variable and its properties as you suggest. Editing Layers.js like this:
    // The following functions can be called by any PDF document
    // that includes this file as part of its 3D Annotation JavaScript.
    // the rest of the code in this file (above) is private and can only
    // be accessed via the layersManager.
    var layersManager = new LayersManagerObject(4);
    function addPartToLayer( partName, layerIndex )
    layersManager.addPartToLayer( partName, layerIndex );
    layersManager.addPartToLayer( "Bottom", 0 );
    layersManager.addPartToLayer( "Straight01", 1 );
    layersManager.addPartToLayer( "DeepU02", 2 );
    layersManager.addPartToLayer( "Crescent03", 3 );
    function displayLayer( layerIndex )
    layersManager.displayLayer( layerIndex );
    layersManager.displayLayer( 0 );
    layersManager.displayLayer( 1 );
    layersManager.displayLayer( 2 );
    layersManager.displayLayer( 3 );
    Then set up the button to "displayLayer":
    var context3D = getAnnots3D(0)[0].context3D;
    context3D.layersManager.displayLayer( 1 );
    Unfortunately this does not seem to work either, but instead returns an error that "function is not a function" . . . :(
    - David

  • My Number One Motion 3 request

    This is a so near yet so far problem I currently have with Motion 2.12.
    It makes it very tough for me to convince broadcast professionals to use Motion in their workflows. Motion 2.12 will import all layers of a Photoshop file as separate objects
    and place them under a layer like 'import as composition with cropped PSD layers' in After Effects. Great. Broadcast graphics creators make layered photoshop files
    with alpha masked pack shots for repeated ad content all the time.
    You can animate away at real time speed in Motion and get those packs/products/CDs/DVDs onscreen and looking good.
    But what you can't do is replace the content of one of those objects with another without dragging it from the file browser. The only workaround is to make individual photoshop files of each PSD layer, and drag them over your Motion layer or object. Its only a partial workaround as when replacing content the photoshop layer will replace without its cropping boundary throwing off your animation.
    Nasty. Especially when its so easy in After Effects. Each photoshop layer is displayed in a folder ready to replace by simply dragging over the selected timeline layer while holding ALT or option.
    If anyone can explain a way around this issue that would be great.
    If its fixed in Motion 3 that would be even better.
    Best Regards
    Chris Wyatt

    Hi Adam
    Phew! The first sensible reply I have had to this post!
    An imported Photoshop file will indeed update in a Motion project if the original Photoshop file is updated.
    This is another roundabout way way to deal with this problem.
    The graphic artist preparing the layered Photoshop file could swap out the old content and replace it with new within Photoshop, and the animation and effects applied to the objects inside your Motion project would remain intact and update to the new content.
    But the Photoshop layers would need to be named identically and the number and order of Photoshop layers could not change.
    The crux of this issue seems to me to be that Motion currently only allows multiple layers of a photoshop file to be manipulated as Motion objects from within a Motion layer. You can see the individual Photoshop layers in the inspector pane from the media tab in the project pane but thats it. You can drag an instance of a photoshop layer object to the file browser, but you can't use this object to exchange or replace with any other object or layer in your project.
    Which I find really weird because its very easy to do in Final Cut Pro 5.14 and in Shake 4.1.
    Just to be clear about the cropping - I am referring to the boundary of the imported Photoshop layers only. This is before any manipulation of these layers as objects inside Motion. Typically the boundaries of these layers will not be 720 by 576 (I'm in the land of PAL), they will be the boundaries of the image inside that. If you import a layered Photoshop file with a transparent background into Motion with images that are smaller than your video frame size inside the canvas (of PAL - 720 by 576 pixels for example) you will see that the layers import to their image boundaries. This conforms to import as composition - cropped layers in After Effects. We just don't get the next important bit in Motion which we do in After Effects which is each Photoshop layer available as an item in a browser. With show overlays ticked in the view menu in Motion you can verify this for yourself.
    You lose this boundary info if you replace the content of a Motion layer or object from the file browser with another Photoshop file.
    I hope this helps to explain my problem.
    If anyone can help, please post.
    Best Regards
    Chris Wyatt

  • Action steps that won't run correctly in PSE 7/8/9 (but did in 4 and 6)

    I have a wonderful action that was written to work in PSE 3/4/6.  It won't run in PSE 7/8/9.  After fooling around for a while, I think I understand why.  Adobe changed the way Adjustment Layers are handled.  In earlier versions of Photoshop and Elements, Adjustment Layers threw up a modal dialog box.  That changed so that Adjustment Layers now appear in the Palette Bin as a palette.
    Here a sample of some of the action steps that won't work correctly:
    Make adjustment layer
    Using: adjustment layer
    Type: levels
    Set Selection
    To: none
    Set current layer
    To: layer
    Name:  “Adjustment 1”
    Set current layer
    To: layer
    Mode: luminosity
    Stop
    Message:  “Move gray slider left”
    With Continue
    Set current adjustment layer
    To: levels
    In earlier versions of PS and PSE, the way these steps would work is that a new adjustment layer would be created, the dialog box giving the instruction would open, it would be dismissed by clicking "Continue," and then the "Set current adjustment layer to: Levels" would generate a model adjustment layer dialog box would open up which would let one make the adjustment.
    In newer versions, since Adjustment Layers are handled in the Palette Bin, after dismissing the instructions, the action doesn't stop to allow the user to make change the sliders on the adjustment layer.
    The action runs perfectly in CS4 and CS5 and throws up the levels adjustment modal box as it did in PSE 4 and PSE 6, but the action doesn't throw the modal box in PSE 7/8/9
    Does anyone know of a way to alter the action steps to allow the action to stop to allow the adjustment and then to resume again?

    Adding a new levels adjustment layer on top of the Midtone contrast layer
    should work, just use a clipping mask to restrict the adjustments to the
    areas of the levels adjustment layer below. The histogram will be different, but
    actually testing the action is really the only way to know if that makes any difference.
    Replacing the levels adjustment layer is another option, though it requires a few more steps.
    The following assumes when the action gets to this point,
    the Midtone contrast adjustment layer is the active (selected) layer.
    To record this part of the action:
    1. Duplicate current channel (in the channels panel. drag the Midtone contrast mask
        down to the Create new channel icon at the bottom of the channels panel)
    2. Ctrl+click on the newly created channel (Midtone contrast mask copy)
        This loads the selection of that channel.
    3. Drag the new channel (midtone contrast mask copy) to the trash icon at the bottom
       of the channels panel.
    4. Back in the layers panel, delete the Midtone Contrast adjustment layer.
    5. Go to Layer>New Adjustment Layer>Levels
        This creates a new levels adjustment layer using the selection loaded from
        the duplicated channel and opens the levels dialog.
    To load the RGB (composite) as a selection, Ctrl+click on the rgb in the channels panel
    and the same is true for the red, green and blue channels.
    With layer masks, elements doesn't seem to want to load them as selections in actions,
    so that's the reason for the action steps above.
    MTSTUNER

  • Mid 2007 iMac SSD in optical bay - cannot write to last block of device

    Hi All,
    I've just replaced my optical drive in my 20" mid 2007 iMac (Dual core, 2.4 Ghz, 2 Gb RAM running Mavericks) with a solid state drive (Crucial MX100). The plan is to transfer my boot disk to this drive while keeping my 1 Tb HDD for media and such.
    I followed the ifixit guide and it all went smoothly, however when I try to partition or erase the new SSD using Disk Utility, it tells me "Operation failed - cannot write to last block of the device". After googling, I found some answers here that suggested the optical bay cable may be faulty, so I bought a replacement and swapped it in, but no such luck, same problem. I also saw some threads suggesting that the boot disk should be in the original hard drive spot, but since this isn't the boot disk (yet) this shouldn't be the issue.
    My computer recognizes the new SSD but won't allow me to partition it. Any suggestions on how to proceed?
    Thanks!

    ds store wrote:
    3. The new disk is just bad.
    OK. If that's the case, I'll just get another disk.
    Lots of problems with that hybrid drives on Mac's on these forums, get another one that's 7,200 RPM and from Western Digital, not Seagate.
    With a 7,200 RPM you get more performance across the entire drive, not just what's cached in the small flash portion of the hybrid.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents#/
    1. Hybrid drives: I'm on number 8 in 6 different machines, no problems at all, what happens when you try?
    2. The OP is not using a Hybrid.
    3. Lot's of problems with WD drives not booting on these forums though.

Maybe you are looking for