Copy of 5 layers (or a set of layer) to another open document

Hello

I have 2 open documents. The former has 5 layers. I need these 5 layers to the second open document. And that's my problem. The 5 layers creates a composition. So if I copy one by one, the position related to other layers will change.

In my script tried linking layers before copying. Without success. Tried to create a layerSet, but did not find any method to copy this layer defined in the second document :/

No idea how to copy the 5 layers of another document?

Thank you very much

Gustavo.

Using copy and paste or layer.duplicate? Duplicate will retain all the data layer including position. If the documents are of the same size and the res, dupped layer will be in the same place, they were in the original document.

If you copy and paste you need to get the layer boundaries in the original Victorinox then use layer.translate to move them into the correct position after the paste.

Tags: Photoshop

Similar Questions

  • Script to copy layer in another open Document/group?

    Hi, I know that this topic has been covered several times before. But to clarify, here's what I asked:

    Copy the active layer/group into another document opened in Photoshop. The easiest way is to go to the «layer/double layer...» ». But it is very tedious. To begin with, when you choose this method and then select the document you want to copy in the menu drop-down, successfully, copy the layer/group for this document, but it is not auto-switch (unlock) in the document, he just copied in. You have to hit 'Ok', and then manually search through the open documents list via (window / * choose your document *) to get there. It is a nightmare when you try to do several times.

    Here's what I asked:

    It is possible to:

    (a) copy the active layer/group in the Clipboard/memory

    (b) switch to another document in Photoshop * via a personalized menu * which shows all existing documents

    (c) one time positioned on the new document, paste this layer/group from the Clipboard into this document

    .. is this possible?

    At the very least, is there scripts that anyone knows of that allows the user to switch between existing documents via a custom instead of going to the window menu / * choose your document *?

    Hi @boo radley 2013.

    do you mean something like this?

    // LayerPaste2anotherDoc.jsx
    // https://forums.adobe.com/thread/1496531
    
    // regards pixxxelschubser
    
    var aDoc = app.activeDocument;
    var AllDocs = app.documents;
    var actLay = aDoc.activeLayer;
    
    if (AllDocs.length > 1) {
    var itemDoc = null;
    actLay.copy ();
    
    var win = new Window("dialog","Copy the active layer");
    this.windowRef = win;
    win.Txt1 = win.add ("statictext", undefined, "Paste in which open document?");
    win.NewList=win.add ("dropdownlist", undefined, AllDocs);
    
    win.NewList.selection = 0;
    itemDoc = win.NewList.selection.index;
    
    win.cancelBtn = win.add("button", undefined, "Abbruch");
    win.quitBtn = win.add("button", undefined, "Ok");
    win.defaultElement = win.quitBtn;
    win.cancelElement = win.cancelBtn;
    win.quitBtn.onClick = function() {
    win.close();
    }
    
    win.NewList.onChange= function () {
        itemDoc = win.NewList.selection.index;
        return itemDoc;
        }
    
    win.show();
    
    app.activeDocument = app.documents[itemDoc];
    app.activeDocument.paste();
    app.refresh();
    } else {
        alert ("No other documents open")
        }
    

    Have fun

  • Is it possible to copy all the layers in the layers panel and paste them in a new document?

    The content of each layer will be different on each document so I don't want to copy. I have 12 documents to be used in a calendar and I want all the layers as well as their names and colors to be the same in each document. I already have all the pages designed and built, but personal information is to be added, and I want each of them to match all the others.

    Basically, all I want to do is to copy the contents of the layers panel and past in each of the other documents.

    I just create a page at the end of the document w / layers and on this page, add an item by layer. Also, if you have 15 layers, drag the small fifteen frames on the page and the layer icon to assign each image to another layer.

    Then in the Pages panel menu, choose move Pages. Choose this 'page of layers' to move to your receiving document (another of your calendar documents), Destination: end of the Document.

    The receiving document will get all the layers. Remove all items (15 views) on the extra page and the layers remain.

    Next time you make a schedule, you should check the add-on for InDesign Calendar Wizard. You will cry all the time you wasted it making manually ;-(

    Home Calendar Wizard

    Anne-Marie

    InDesignSecrets.com

  • Photoshop script to copy all the layers of close PSD to open the current document

    Hi, I have very limited capacity script so this task is above my pay grade

    I'm looking for a script to read and copy all the layers in a PSD saved file and copy them into the current active document. The two documents have the same size and I need to be able to change text layers after copying. Anyone has any advice or examples of how I might be able to do this?

    Thank you in advance for any help you can offer.

    Kind regards

    Marcus

    Try the script in entry below. You must open the destination file, and you must put in the path and name where your source file. It will not choose a layer from background from the source file.

    #target photoshop
    var sFile = new File('~/desktop/template.psd');//change path to template file
    var doc = activeDocument;
    var sDoc = open(sFile);
    
    var idselectAllLayers = stringIDToTypeID( "selectAllLayers" );
        var desc2 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref1 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref1.putEnumerated( idLyr, idOrdn, idTrgt );
        desc2.putReference( idnull, ref1 );
    executeAction( idselectAllLayers, desc2, DialogModes.NO );
    
    var idDplc = charIDToTypeID( "Dplc" );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref2.putEnumerated( idLyr, idOrdn, idTrgt );
        desc5.putReference( idnull, ref2 );
        var idT = charIDToTypeID( "T  " );
            var ref3 = new ActionReference();
            var idDcmn = charIDToTypeID( "Dcmn" );
            ref3.putName( idDcmn, doc.name );
        desc5.putReference( idT, ref3 );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc5.putInteger( idVrsn, 5 );
        var idIdnt = charIDToTypeID( "Idnt" );
            var list1 = new ActionList();
            list1.putInteger( 3 );
            list1.putInteger( 4 );
        desc5.putList( idIdnt, list1 );
    executeAction( idDplc, desc5, DialogModes.NO );
    
  • Buongiorno possiedo (since acquistata place diversi anni fa) una copia e original con number di set di licenza - di Macromedia MX 2004 - che I like pero adesso instattare sul mio nuovo PC (Windows con 10). He problema e che no go a buon fine l

    Buongiorno possiedo (since acquistata place diversi anni fa) una copia e original con number di set di licenza - di Macromedia MX 2004 - che I like pero adesso instattare sul mio nuovo PC (Windows con 10). He problema e che no go a buon fine the attivazione Internet di nobody dei presenti nella Suite software (Freehand, Fireworks, etc.). In pratica non posso utilizzarla. E' a peccato anche perche Ho nice tanti soldi e mi serve. Of the error: "the del software no e limpeza sommergibili causa di problemi della rete. Links the outdo an Internet e riprovare.

    Error: Server di attivazione non disponibile | Prodotti con marchio Macromedia

  • Why I didn't copy and paste layers or folders in Photoshop?

    I honestly have a hard time understanding why I can't layers Ctrl + C and Ctrl + V, or folders (with styles and properties) in Photoshop, although I can with other elements in Photoshop and with almost all elements of all software published by Adobe (including the insurmountable more complex layers of an After Effects composition). I have long used different methods to copy layers and folders autour (double drag, etc.), but they can all be very heavy at times depending on the project and this is the specific workflow. For example, I just finished editing on the thirty selected RAW photos of an event in PS and I need either already have my watermark on them that I have edited, each of them or that I do now as a big batch of ol '-note: because I put my mark in a location unique photo based on its content This is the direction and My Eye stocks or batch commands do not work for this). My only option really is to visit the source document containing my watermark layer more than thirty times to retrieve a single item of data which could and should only be required in my Clipboard and available with a simple keyboard shortcut (note also that my brand fusion styles will be also adjusted according to the photo, excludes a selection of brand that can be copy and paste but only as a raster with an alpha channel layer).

    Y at - it an explanation of why it's missing? Maybe there's a logical reason, I do not understand...?

    See you soon!

    Also use ctrl/cmd-J to duplicate (copy) a layer in the same document, which will retain all of its attributes. And as Trevor mentioned, you can just drag the layer in the layer panel to another document tab to replicate to another document - no menus, no workspace rearrangement.

  • Copy layers or pieces of a layer from one page to another, without masters?

    How can I copy layers or pieces of one page to another? I created a master and I want to create a second master who uses much of the same configuration, but I need to go to enter a photo in the background. However, the only quick way to get menus and headers of the first master in the second master is actually the master award, but then I can't move the picture on the back at all. Is there a way I can copy these menus and such in a new master without having that him attributed to the first master?

    In your site map, right click on the mask that you want to use as a second master and choose 'double page'. This will create a new master with all elements of the first master, but can be edited separately from the first menu.

    If I understand what you were trying to do this should work for you.

  • Could not get Outlook Express to send a copy to my server, so I can access it from another computer

    I can not Outlook Express to send a copy of my e-mail messages to my server (Charter.net) so I can access it from another computer.  I tried to check the block that says "Send copy to the server", but that did not work.  Any suggestions?  I'm not a true computer person so that the answers should be very details.  Thank you.

    The messages on your computer now, you would have to back to yourself, and then they would be on the server.  For the future, go to tools | Accounts | Mail | Properties | Advanced and check the leave a copy of messages on the server.  Do it with another machine in order to get the messages on both machines.  Then also set one of them to delete messages from the server after a few days, so that they accumulate and fill the mailbox you.

    Steve

  • How to copy a profile for a child from one device to another family safely direct windows for Windows 7

    How to copy a profile for a child from one device to another family safely direct windows to Windows 7? I have several devices on Windows 7 and my child has ins journal to each device. I want safety to be entirely copied from one to the other devices. How can I do?

    Hello

    Thanks for posting your question on the Microsoft community.

    Thank you for your query details.

    I also appreciate your concerns about security for the family.

    I suggest to read the following article and check.
    Reference:
    http://Windows.Microsoft.com/en-us/Windows/set-up-family#set-up-family=Windows-7

    See also this wiki article created by Lonnie_L on August 24, 2013.
    Family Safety: frequently asked Questions
    http://answers.Microsoft.com/en-us/Windows/wiki/windows_other-security/family-safety-frequently-asked-questions/5672f7b2-e3c0-498a-9a6c-c9cab39f68e5

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • How to animate keyframes, which I copied into After Effects to mirror the same movement as another series of keyframes?

    Screen Shot 2015-12-12 at 3.39.03 PM.pngLayer of biker to right leg. Screen Shot 2015-12-12 at 4.14.56 PM.png Biker body layer.

    You add an expression to the property that you want to order by selecting the property and then by holding down the Alt/Option key. Here are the basics: Adobe - search: the expressions. Learn more by typing key words such as expressions in the field search for help in the upper right corner of the AE.

    If you want keyframes in a single layer to match the keyframes in another, then you can link the properties with a simple expression that is created by dragging the pickwhip to layer property from the slave to copy the master layer that you want to track. This example would bind the rotation of a layer to another rotation. The second expression would offset values and is an example of how you define in your animation cycle to the top of the opposite leg. You just know how many images there are in the cycle. Just go to the last image and read the number of frame. It's easier if you have the calendar set up to read in frames. Change the display time by holding down the Ctrl/Cmnd key by clicking on the time indicator.

    If you want to have the slave shift layer in time, then you add an argument valueAtTime expression as in this example using the rotation property of the main layer:

    r = thisComp.layer("Master").transform.rotation;

    offset = r.valueAtTime (time +. 5)

    This assumes that your cycle of keyframes is 1/2 second.

    If you are more comfortable working with frames in seconds and then you change the expression like this assuming that the number of images in your game to keyframe is 15:

    TF = 15; Number of the frame in the last keyframe in the cycle

    r = thisComp.layer("Master").transform.rotation;

    TTF = tf/(1/thisComp.frameDuration);

    offset = r.valueAtTime (time + ttf)

    Here is an example of pin simple puppet:. Dropbox - Expression leads to foot Cycle CC 12 aep (If your browser adds a .txt extension, simply remove it and you should be able to load the project 2012 CC and later). I arranged the workspace so that it was easy to see what I had done. Given that I've created a loop instead of a ping-pong of the keyframe in the middle of the cycle was used as at the beginning. Have fun...

  • Copy a shape layer in another image?

    The only way I found to copy a shape from one image to the other layer is to have two footage in the editing pane and drag and drop the shape layer in the layers Panel on the other image.

    It is a rather painful process.  Is there another way to do it, I hope a keyboard combo?

    Ken

    One way is to use to duplicate the layer and in the destination menu choose the other open document.

    If your use of tab you should be able to drag the shape of the area of document using the tool go to the other tab and drop in the document.

  • How to copy a layer and its mask layer to another image?

    With the help of PSE9, how a copy a layer and its mask layer to another image?

    Online Help includes a topic on how to copy a layer but try the different methods in the help topic results in either nothing copied or just the layer without his mask layer is copied.  Thank you.

    How did you get a copy?  If you float your images so that they are both partially visible in the work area, make one with the being copied the active layer.  Then, drag the layer in the layers palette on the other image.  Now you should have both the layer mask on the second image.

    Jürgen

  • Create the action drag and drop layers of curve of one file to another?

    Good, everyone!

    I am recording a Photoshop Action that...

    1 open a source file

    2 selects the specific curve layers

    3 door the layers of curve in a destination file.

    I tried to simply drag / drop the selected layers from the source to the destination document, but the Action records only "select previous document" without actually transferring the curves.

    I can right click on the layers, I want to breed and select "in double layers...". "but she blocks the Action in a specific destination AND it will not allow the menu appears.

    I could look at it a different way, I save each as preset curves layer and has the Action simply create layers instead of dragging a file source. However, I have a prohibitive number of those darned layers and most of them have "Mix Ifs" on them as well, and that would take a lot of time to produce.

    Any suggestions?

    Thank you

    Bruce


    The function below copy a layer of the activeDocument (selected doc and layer) to the next open document. If only the two documents are open, it doesn't matter what order the documents are in. i.e. with only two following open documents and previous doc is the same doc.

    function copyLayerToNextDoc() {
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
            var ref2= new ActionReference();
            ref2.putOffset( charIDToTypeID('Dcmn'), 1 );
        desc.putReference( charIDToTypeID('T   '), ref2 );
        desc.putInteger( charIDToTypeID('Vrsn'), 5 );
        executeAction( charIDToTypeID('Dplc'), desc, DialogModes.NO );
    };
    
  • How can I copy a location of a photo and paste it in another? iPhoto can do this, but I can't find a way with Photos.

    How can I copy a location of a photo and paste it in another? iPhoto can do this, but I can't find a way with Photos.

    Accessible location via Get Info (command-I) information.

  • The contents of the iPhoto library "copy of iPhoto library" has already been migrated to Photos.  Open the Photos to display your library or use a compatible version of iPhoto to open the iPhoto library. How can I fix?

    The contents of the iPhoto library "copy of iPhoto library" has already been migrated to Photos.  Open the Photos to display your library or use a compatible version of iPhoto to open the iPhoto library.

    What you trying to do?

    You want to open your iPhoto library in iPhoto or the new Photos.app?  and what version of Mac OS X and iPhoto you have installed on your Mac?

    If you have improved your Mac to Mac OS X 10.11,2, El Capitan, you can open your photo libraries or in News Photos for application mac or you can continue to use iPhoto, but only iPhoto 9.6.1 will work on El Capitan.

    IPhoto update (see user tip of Barney: cannot be updated iPhoto because it is not available in the App Store)

    Once an iPhoto Library was opened in Photos the extension will change to ".migratedphotolibrary".  To open this library in iPhoto again, change the extension of filename in '.photolibrary '.

    See also: Photos if does not open a library that you have already migrated - Apple Support

Maybe you are looking for