Cpy/paiste group into another document

hello forumers.
im trying to copy/paiste my group(consists of 10layers) from one ps document into another.is this possible?
im selecting all its paisting it into my other document,but all the layers are merged.i need it to come into the document as a group wiht all its layers.
thank you.

jeffrey your a life savour thanks 1000
best regards.

Similar Messages

  • Stretching/translating a layer into another document

    I probably just have my math wrong, but given a selection box boundary (or boundaries), I'm trying to resize it so that it's the size of a target document and then translate it so it's in the top-left corner taking up the whole screen (so what's in square selection takes up whole screen.  Now if I duplicate the layer in the same document and scale it using the document's dimensions and translate, it fills the whole screen.  However, if duplicate the layers into a target document and scale and translate according to its dimensions, the layer is the correct size, but wildly off position (most of the time off the page).  I would think the translation would be independent of the destination doc and based just on the scale and (minX,minY) of the selection box. 
    Is my math off or is there something funny about duplicating a layer into another document?  I'm guessing it's the former, but I keep doing it in my head and the math looks sensible. 
    var layer = app.activeDocument.activeLayer;
    //layer.isBackgroundLayer = false;
    var layers = new Array(thumbnails.length);
    //layers[0] = layer;
    for (var i = 0; i < layers.length; i++) {
        layers[i] = layer.duplicate(documentTarget);
    var srcDocument = app.activeDocument;
    app.activeDocument = documentTarget;
    // for every layer, go through translating and resizing based on the box size
    for (var i = 0; i < layers.length; i++) {
        var selectionBox = thumbnails[i];
        var scaleX = documentTarget.width.as("px") / (selectionBox["maxX"] - selectionBox["minX"]);
        var scaleY = documentTarget.height.as("px") / (selectionBox["maxY"] - selectionBox["minY"]);
        layers[i].resize(scaleX * 100, scaleY * 100, AnchorPosition.TOPLEFT);
        layers[i].translate(new UnitValue(-selectionBox["minX"] * scaleX, "px"),
                                    new UnitValue(-selectionBox["minY"] * scaleY, "px"));

    .. Why would minX,minY be different assuming the layer is duplicated to the topleft of the target document at 0,0?  
    That was the point I was trying to make. That assumption is incorrect. The duplicated layer will not be at 0,0 unless both documents are the same size and resolution. The duped layer is centered in the new doc. Only when the sizes match will the positions match. Otherwise the new top left position could be anywhere including off canvas( negative values ).
    If you don't want to change minX, minY for some reason you could add code to align the layer to the top left before the translate line.
    function align(type){
       var desc = new ActionDescriptor();
         var ref = new ActionReference();
           ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Lnkd" ));
       desc.putReference( charIDToTypeID( "null" ), ref);
       desc.putEnumerated( charIDToTypeID( "Usng" ),charIDToTypeID( "ADSt" ), charIDToTypeID( type ) );
       executeAction( charIDToTypeID( "Algn" ), desc, DialogModes.NO );;
    function alignTopLeft(){
      align("AdTp");
      align("AdLf");
    app.activeDocument.selection.selectAll();
    alignTopLeft();
    app.activeDocument.selection.deselect();

  • Using Photoshop scripting copy a layer and paste into another document at a particular selection

    I want to copy a layer of a document and paste it into another document in the particular layer selection..

    Thanks Badunit for your quick response
    I have found the answer - it is a incompatabilty between CopyPaste Pro and Numbers: -
    Thanks dbg1596 - solved my problem with which I wasted a good couple of hours getting more and more frustrated with numbers 3.0
    I had the same problem - copy a cell - paste into another cell and it created three vertical cells with the pasted data in the middle
    Definitely a problem between CopyPaste Pro - one of the most useful aps on my Mac for the last many years
    Once I quit CopyPaste Pro - no problem with pasting in Numbers 3.0
    But I use CopyPaste Pro all the time
    Have the folks responded to your query?
    But I use CopyPaste Pro all the time - hope that it can be sorted sooner rather than later

  • (NOT SOLVED) Duplicate layers into another document

    Hello, honorabe participants of Photoshop Scripting forum!
    I have a problem - how to implement in action/script duplication of two linked layers from one document to another already opened document? Linked layers is a specially formatted text, so I can't just copy-paste them into opened document. Already opened document is a CR2-file.
    When I record action, PS also record name of the reciever-document. But this name changes when I open another file so all acation breaks.
    PS can record 'Select next document' and 'Select previous document', but cant' record 'Duplicate layers into previous document'.
    Please, help me to solve my problem.

    Hi Borizzzed!,
    Try this.... one...!!!
    if ( app.documents.length >0 ) {
            var docRef = app.activeDocument
            var layerIndex = 0
            var visiblelayerCount = 0
            var activelayers = app.activeDocument.activelayers;
            var myLayers = docRef.layers;
            var selAlpha, Lname
            var Fname=prompt("Enter The file name with extension ...!","","Do Smart") // like temp1.jpg, yajiv.psd
            if (Fname!="")
            for (var layerIndex = visiblelayerCount; layerIndex < myLayers.length; layerIndex++) {
                selAlpha=docRef.layers.getByName(myLayers[layerIndex].name);
                Lname=myLayers[layerIndex].name; // Selected current layer name
                //alert(Lname);   
                DpLayer(Lname,Fname); // duplicate layer name to other Photoshop Document.
        function DpLayer(Lname,fname)
                var id766 = charIDToTypeID( "slct" );
                var desc45 = new ActionDescriptor();
                var id767 = charIDToTypeID( "null" );
                    var ref9 = new ActionReference();
                    var id768 = charIDToTypeID( "Lyr " );
                    ref9.putName( id768, Lname );
                desc45.putReference( id767, ref9 );
                var id769 = charIDToTypeID( "MkVs" );
                desc45.putBoolean( id769, false );
            executeAction( id766, desc45, DialogModes.NO );
            // =======================================================
            var id770 = charIDToTypeID( "Dplc" );
                var desc46 = new ActionDescriptor();
                var id771 = charIDToTypeID( "null" );
                    var ref10 = new ActionReference();
                    var id772 = charIDToTypeID( "Lyr " );
                    var id773 = charIDToTypeID( "Ordn" );
                    var id774 = charIDToTypeID( "Trgt" );
                    ref10.putEnumerated( id772, id773, id774 );
                desc46.putReference( id771, ref10 );
                var id775 = charIDToTypeID( "T   " );
                    var ref11 = new ActionReference();
                    var id776 = charIDToTypeID( "Dcmn" );
                    ref11.putName( id776, fname );
                desc46.putReference( id775, ref11 );
                var id777 = charIDToTypeID( "Vrsn" );
                desc46.putInteger( id777, 2 );
            executeAction( id770, desc46, DialogModes.NO );

  • How do I merge multiple artboards into another document?

    I am working on a team, and we'd like to combine our work into a master document that contains all of our different artboards.
    I have a UI document set up with multiple sets of different artboards.  I.E. a row of 32x32 artboards with individual small icons, a row of 60x60 artboards with bigger icons, etc. so recreating these would be very cumbersome.
    I know it's possible to just copy paste everything into one document, but what is the strategy for copying the artboards as well?
    I'm currently looking at having to rebuild the artboards in the master document, so any help would be MUCH appreciated!!  Thank you.
    -Nick

    Ah that's something! I drew 32x32 rectangles around my icons, copied rectangles+icons over to new document.  Then selected just the rectangles around the icons and did Object > Artboards > Convert to Artboards
    Now I just have to rename them again, which is not as bad as recreating each one.  That's pretty awesome, thank you Monika!
    Further question for Monkia/Adobe/comminuty: is there an even more automatic way to merge artboards from two files together?  Ideally it would just merge all the artboards to a new file (in the same place, etc).
    The Artboard feature makes Illustrator a very viable tool for app UI design (center icons in individual art boards, export with transparency, at different resolutions etc).  Having icons be symbols is also useful - change an icon, it propagates throughout the layout.
    However, not being able to merge artboards (with respective names) from different files prevents it from being terribly useful for teams.
    I found a discussion regarding a script for CS5 by CarlosCanto that seems to do this, but it doesn't work on CS6:
    http://forums.adobe.com/thread/954411
    Again, thank you Monika, your advice just saved me a TON of time, and I hope this feature makes it into future versions of Illustrator.
    -Nick

  • After hiighlighting a word and pasting it into another document, the clipboard does not clear ;when I hit enter it pastes again and again. How do I fix it?

    When I highlight a word or phrase and copy to the clipboard, then paste it in another area the clipboard does not clear the phrase. Therefore, every time as I type and hit the enter key it continues to paste the phrase all over my document. I do have the latest download of Firefox installed (16.0, win 7 and that is when this started. How do I stop this obnoxious behavior so I can type a sentence with normalcy?
    Louise

    Thank you, Iusually do that first thing with any computer problems. Old school computer fix. Hard Boot regardless! lol Thanks again.

  • Know any reason why color swatch coverts to black when I copy and paste into another document?

    I keep having issues when I copy and paste a table from one document to the next. Some of the PMS ink colors convert to black. Anyone have a clue?

    In colors in the table or elsewhere in the file? Are you using table or cell styles? If so, did you define new ones or redifine the defualts? The general principle to remember when moving content from file to file is that anything like styles or swatches that appear with the same name in both documents will use the definition from the receiving file.
    Anothe possibility, though less likely, is that you've used the ink manager to alias the spot color to black.

  • Migration of one welogic (obiee)  " Users&Groups " into another

    Hi,
    How to migrate the " User's & Groups " which were created in one web logic server in to another web logic server.
    What is are the steps we need to follow to do this . Can any one help us on this.
    Thanks,
    RK

    Hello,
    Here is the tutorial on how to migrated users/groups from weblogic to another weblogic server.
    http://www.obieetalk.com/oracle-biee-11g-%E2%80%93-migrating-security-%E2%80%93-identity-stores-%E2%80%93-part-1
    -Amith.

  • How do I move all of my contacts from one iCloud contacts group into another group (all iCloud) without having to make all my contacts again?

    So on my iPod I have all of my contacts but on my iPad I don't. This is because my contacts are NOT in the iCloud group. Is it possible to move all of your contacts to a different group (for me iCloud group) so I can have my contacts on my iPad (without having to creat all of my contacts again in the iCloud group from scratch). Thanks :)

    Do the contacts that are not in iCloud belong to an external account such as Gmail, Yahoo or an Exchange account?  Or, do they belong to On My iPhone?

  • Is it possible to insert a document into another?

    I would like to insert a document into another document without cutting and pasting. That is, to "insert" it into the present document. I have been unable to find that option. Is it possible?

    It would seem a logical function, though Pages is in essence a $30.00 program so it's not going to have all the features one might wish. You can submit feedback to Apple on the issue here, though:
    http://www.apple.com/feedback/pages.html
    Regards.

  • How to place grouped items into another object with content collector tool?

    Is it possible to paste a group into another object (i.e. frame) by using the Content Collector Tool while linking the content?  Paste Into is either deselected or possibly whatever was last saved to the clipboard ends up inserting. I was able to place grouped, linked content into a frame (and later applied a scrollable frame overlay to it) once or twice but can't seem to repeat. Tried selecting the object being pasted into.. holding shift, holding ctrl, all kinds of options, just very confused now.

    Found a potential work-around (I think....).
    1. Use the Content Collector tool and select grouped objects
    2. Select Content Placer tool, check "Create Link"
    3. Place grouped object into doc/onto page with Content Placer tool
    4. Copy placed grouped objects
    5. Paste into frame that will be scrollable later
    For now it seems like the link still works

  • JTextPane: Insert one (part of) a Document into another

    Hi,
    I am writing a small programm which user a JTextPane and a
    StyledDocument with
    an RTFEditorKit.
    Now I have the problem that I want to get one Document, transport it
    over
    a network and insert it into another Document.
    The only method in Document to insert sth needs a string but I have a
    Document.
    So my question is: How can I insert one Document into another or at
    least append
    one Document to another?
    Thanks
    Frank

    Hi, it is much more simpler than i thaught.
    use the getLength method of the Document-Interface.
    e.g.:
                    InputStream in1; // Streams of your Files
         InputStream in2; // Streams of your Files
         RTFEditorKit rtf = new RTFEditorKit();
         Document doc = rtf.createDefaultDocument();
         try{
             rtf.read(in1, doc,0);
             int x = doc.getLength();
             rtf.read(in2,doc,x);
         }catch(BadLocationException ble){
         }catch(IOException ioe){
         }use this value in the read-method as pos and your second doc is concated to the first.
    Or any other pos you like.
    Hope this is what you are lokking for.
    Greetings Michael
    read
    public void read(InputStream in,
                     Document doc,
                     int pos)
              throws IOException,
                     BadLocationException
        Insert content from the given stream which is expected to be in a format appropriate for this
        kind of content handler.
        Overrides:
           read in class DefaultEditorKit
        Parameters:
           in - The stream to read from
           doc - The destination for the insertion.
           pos - The location in the document to place the content.
        Throws:
           IOException - on any I/O error
           BadLocationException - if pos represents an invalid location within the document.

  • How to insert a pages document into another pages document?

    How can I insert a pages document into another one?
    How can I insert 1 page of a document into another document?

    Open your files & show thumbnails. Sections have a yellow border around all of the pages in that section. Now click on the page in the thumbnail pane & copy. If the file is more than one page & you only want one, you'll need to insert a section break to separate the pages. Then go to your other file, click in the thumbnail pane & paste. The whole copied page will be pasted in. Repeat with another section. Styles will copy over with the sections but headers & footers will not.

  • How to insert one document into another in microsoft word?

    I would like to set up a word document such that the document has embedded in it another document shrunk down a bit to make room for additional comments and information which I will add on the side. I've been looking to see if word 2007 has this feature
    but have had difficulty finding it. Is it possible to take an entire document and insert it as a resizeable object into another?
    Some of my research suggests that I might be able to accomplish something of this nature with publisher, and while several people in my office do not have publisher and we'd prefer if it were doable in word, instructions for publisher would be appreciated
    as well if Word 2007 cannot do this.

    Hi,
    Thank you for using 
    Word IT Pro Discussions
    forum. 
    From your description, I understand that 
    you would like to know to how to add a Word document into another Word document in Word 2007, and you can make some comments besides the embedded Word documents.
    If there is any misunderstanding, please feel free to let me know.
     Thank you for your inquiring.
    To insert a Word document to another Word document in Word 2007, follow the steps below:
    =========
    1.      
    In the Word document, click the
    Insert tab.
    2.      
    Click the
    Object in the Text group.
    3.      
    Click
    object. Then click the Create from file tab.
    4.      
    Click the
    Browse button to select the Word document. Also, check the checkboxes before:
    Link to file and Display as icon.
    5.      
    Click
    OK to save the settings.
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything I can do for
    you, please feel free to let me know.
    Best Regards,
    Sally Tang

  • Script to copy Layer/Group to another Open Document?

    Hi, I know this topic has been covered many times before. But to clarify, here's what I'm wondering:
    Copy the active layer/group to another open document in Photoshop. The simple way is to go to "Layer/Duplicate Layer..." . But this is very tedious. For starters, when you choose that method, and then select the document that you'd like to copy to via the pull-down menu, it successfully copies the layer/group to that document, but it doesn't auto-switch (activate) to the document it was just copied to. You have to hit "Ok", and then manually search through the open documents list via (Window/*choose your document*) to get there. This is a nightmare when you're trying to do this many times.
    Here is what I am wondering:
    Is it possible to:
    a) copy the active layer/group to the clipboard/memory
    b) switch to another existing document in Photoshop *via a custom menu* which shows all existing documents
    c) once switched to the new existing document, paste that layer/group from the clipboard into that document
    ..is that possible?
    At the very least, are there any scripts that anyone knows of that allows the user to switch between existing documents via a custom menu instead of going to Window/*choose your document* ?

    This might help with Groups and some other kinds of Layers.
    But it takes the easy route with the target file by using the name to identify it.
    // some amendments to pixxxelschubser’s code;
    // 2014, use it at your own risk;
    #target photoshop
    var aDoc = app.activeDocument;
    var AllDocs = app.documents;
    var actLay = aDoc.activeLayer;
    var theIndex = getSelectedLayersIdx();
    if (AllDocs.length > 1) {
    var itemDoc = null;
    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)
    for (var m = 0; m < AllDocs.length; m++) {
    win.NewList.add("item", AllDocs[m].name)
    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();
    // duplicate layers;
    for (var n = 0; n < theIndex.length; n++) {
    duplicateLayer (theIndex[n], String(win.NewList.selection))
    app.refresh();
    } else {
        alert ("No other documents open")
    ////// duplicate layer //////
    function duplicateLayer (theIndex, theDoc) {
    // =======================================================
    var idDplc = charIDToTypeID( "Dplc" );
        var desc7 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
        ref3.putIndex(charIDToTypeID("Lyr "), theIndex);
        desc7.putReference( idnull, ref3 );
        var idT = charIDToTypeID( "T  " );
            var ref4 = new ActionReference();
            var idDcmn = charIDToTypeID( "Dcmn" );
            ref4.putName( idDcmn, theDoc );
        desc7.putReference( idT, ref4 );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc7.putInteger( idVrsn, 5 );
    executeAction( idDplc, desc7, DialogModes.NO );
    ////// by paul mr;
    function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
            desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                try{
                  activeDocument.backgroundLayer;
                  selectedLayers.push(  desc.getReference( i ).getIndex() );
                }catch(e){
                  selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
          }else{
            var ref = new ActionReference();
            ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
            ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
            try{
                activeDocument.backgroundLayer;
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
            }catch(e){
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
          return selectedLayers;

Maybe you are looking for

  • IPod Touch 4G Alarm Volume

    I just purchased a new 4G Touch and got it all set up with the data from my 3G and noticed right away that the volume for the clock alarm was about half as loud as the 3G. I remember hearing of issues with the alarm due to the setting for the new yea

  • Problrm in prepared statement

    I am trying to updating a table using prepared statement using executeupdate(). I need to write to a reject file if my update fails , the rejected resultset. I have tried to use getresultset() on preparedstatement and it does not work. any sugessions

  • Bookmarks from Safari to chrome

    Hi, I downloaded chrome and wanted to sync my bookmarks from Safari to Chrome, can you tell me how to do that, thanks.

  • QT Reference File or QT Self Contained, Lossless?

    I have a project on a timeline that I want to export as lossless. It was shot and editied at 1440 x 1080i HDV. Should I export it as a Quicktime File (Self Contained) or a QT Reference File? Which will give me a Lossless file? What settings should I

  • XML parsers with JDK1.5

    Does anyone know if the xml parsers that are shipped with JDK1.5 conform to DOM level2 or DOM level3 specification? I am not sure how to locate the parser that is shipped with the JDK either!