Duplicate layer appearance between documents

Hi there,
I use a javascript that copies all objects within a layer to a new layer in a new document. This works fine as all appearances are attached to the objects but appearances applied to a layer will not be duplicated (as the objects are copied into a newly created layer). Is there a method using javascript to duplicate all layer appearances (effects, fills, strokes) from one layer to another layer?
Thanks in advance.

It looks as thought the only way to do this is to make the appearances of the layer into a Graphic Style, group the page items on the layer and apply the Style to the new group.

Similar Messages

  • Duplicate layer to different document with new layer name.

    I am trying to replicate the Photoshop function of "Duplicate Layer" where I can take a layer from an active document and duplicate it to a target document AND set the name of the new layer once it is copied.
    Javascript is the language.
    Windows CS4 if it matters.
    Any suggested code snippets?
    Thanks
    -Mike

    This will dupe the activeDocument to a new document.
    function newDocFromLayer(docName,layerName){
         docName == undefined ? docName = "Untitled":docName;
         layerName == undefined ? layerName = activeDocument.activeLayer.name:layerName;
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putClass( charIDToTypeID( "Dcmn" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
        desc.putString( charIDToTypeID( "Nm  " ), docName );
             var ref1 = new ActionReference();
            ref1.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        desc.putReference( charIDToTypeID( "Usng" ), ref1 );
        desc.putString( charIDToTypeID( "LyrN" ), layerName );
    executeAction( charIDToTypeID( "Mk  " ), desc, DialogModes.NO );

  • Layer Via Copy vs Duplicate Layer

    In CS4, what is the practical difference between:
    Layer via Copy (Layer > New > Layer via Copy - or Ctrl/J)
    and
    Duplicate layer (Layer > Duplicate Layer).
    Asked another way: when are they NOT interchangeable.

    If you want to duplicate a layer to another document, they are not interchangeable. Otherwise, I'm pretty sure they are.
    With smart objects, new layer via copy tears off the smart object from other duplicates, so edits made to smart object A do not get copied to smart object B. If you just make a duplicate smart object, then when you edit A you edit B as well.

  • Copy layer content between InDesign files

    Hello,
    I'm trying copy layer content between 2 files, the sources file is a Spanish version of a training manual and the target is an English version. Essentially making a single multiple language file out of two single language documents.
    I'm not well-versed in scripting.
    Thanks

    Hello Again Steve,
    Perhaps if I shared a bit more detail.
    We began with an English version. All content was placed on layer 1. At the time some of the manuals were created there was no thought of needing multiple languages.
    These files had their one layer with all placed graphics and text renamed English. The Idea was all the graphics that have text embedded in them have been edited to add the second language onto a new layer in the graphic files. (Many of the manuals share graphics between them, so a common links folder was used to maintain the library of images. The graphics files have an "art layer" and "English" layer and a "second and in some cases a third language layer added.)
    In InDesign the English layer was to be duplicated (duplicating both the graphics and the text) The text was then exported out as tagged type and translated into the second language and was to be flowed back in to the second language layer. InDesigns layer overrides would be applied to each of the duplicate images to turn off the English text layer and turn on the second language layer. One copy of all the graphics and one InDesign file containing each language layer with it's appropriate layer overrides.
    To print the thought was to turn of the language layer visibility you didn't want and turn on the language layer you did want.
    I hadn't anticipated the translation company would override the request to perform the translations in this manner and provided a single language file back instead.
    I thought it was an efficent system. A single copy of each manual to deal with and single graphic files in a common library to be maintained. At some point e-publishing is being considered and I thought one e-book with all the languages in it could be created and within the e-reader the appropriate language could be enabled. Eventually, I anticipate, and hopefully prior to the e-book effort, we will be upgrading to CS5.5 to take advantage of it's enhanced e-pub features.
    Like I said, I am new to this multiple language publication process and imaged the workflow to do the job rather slickly. Rather then having sequential languages one after another in the same book the languages would take advantage of the virtual Z dimension.
    Fewer files to maintain, if a change was made to the english version the change could be made to all language layers on the same page.
    Given your extensive experience I'd be interested in entertaining the pros and cons of sequential verses layered multlingual files. Seemed more efficient to duplicate the text in this manner then to duplicate all the graphic files. In some cases the manuals we are working with are so old (but not outdate) as to not even have digital versions. It's a big project and management within the company doesn't always think very far ahead. I'm attempting to develop a "plan" and not certain nor convinced it is the most appropriate so your advice and opinion would be recieved with great consideration. I haven't found a whole lot of resources regarding multilingual publishing. The project was sort of "thrown" at me and at the moment it's rather difficult to determine if I'm sinking or swimming. My head goes underwater but I could be doing the butterfly and that's suppose to happen.
    Right now language needs are limited to the languages with land masses attached to ours North Central and South America. International Spanish was one choice, rather then having to support each dialect. That will likely change in the upcoming years but I know of no plans when.
    Thanks again,
    Mark

  • Why do duplicate albums appear on my iPod Classic screen when there are no duplicates in my iTunes Library?

    Why do duplicate albums appear on my i{Pod Classic screen when there are no duplicates in my iTunes Library?

    It's probably going to be a capitalisation error. In other words, one or more tracks on the album has a lower case letter at the beginning of the album name while all the others have a capital letter. They can be difficult to spot.
    In iTunes, examine one of your duplicated albums carefully. You should be looking for a slight difference between the album title name. Look at the screenshot below, can you see the error in the album title?
    It is there...
    The title track (Left Of The Middle). Look at the capitalisation of the album name.
    Once you find you error in your album, re-type it (or copy-and-paste from one track to all the tracks) and then SYnc your iPod to iTunes. Does that cure it? If nto, let us know.

  • How to move pages between documents WITHOUT elements shifting

    Hi everyone! My team members and I are so frustrated over what I think should be a really simple issue: copying/moving/dragging pages between documents and NOTHING CHANGING.
    Whenever we move pages between documents (which we have to do on a monthly basis - moving content into client branded files), at least ONE thing will shift and it usually has to do with overset text and/or text wrap. We have googled our brains out. We've tried everything on this list How-To: 10 Techniques for Copying Pages Between InDesign Documents | CreativePro.com and in the various Lynda tutorials we've looked at. We have combined our powers and still can not solve this problem so now I come to you, hoping that you can please please please help us figure out this issue before one of us throws a computer out the window.
    We have this one document. And this is what one of the problem pages looks like. Everything is on one layer. (look at the section marked 5)
    Then I move the pages (copy/paste the content; drag and drop the pages; etc.) into the destination document so we can apply branding.
    AND THIS HAPPENS.
    WHY does this text suddenly become overset?
    The preferences of both documents are IDENTICAL. In fact, Document B was originally created from Document A.
    AND FUN FYI: I took Document A and Saved As a new name. Opened it the new name. And tried moving the pages into the newly named document -- and the SAME EXACT THING HAPPENED.
    I am going to bash my head into a wall. Can someone please shed some light on this? Have you seen this before? How do we fix it??

    aschwartau wrote:
    Doesn't saving as IDML lose some of the properties if you use any shadow or other effects?
    That's not something that I have ever heard, but since I haven't heard everything, I suppose it's possible. What you may be thinking of is that some people use idml to migrate a file to a lower version, and if that lower version lacks a feature of the version that created the file, you will either lose or modify the way that that feature worked in the original. I don't think that even in that scenario that a feature that was present in both versions would go away just because it took a trip through idml to get to an earlier version. And if idml botched shadow or effects, nobody would use it, and I don't think Adobe would have it.
    aschwartau wrote:
    If we had just done a final Save As on the Document A before giving it to the team member who's going to be copying the content into Document B, does that not count as doing a Save As? You mean the minute it's freshly opened try doing another Save As? (P.S. Edit: Just tried this. Didn't change what happened. )
    The thing that Save-As does is remove little bits of data associated with undos that a normal Save retains. Sometimes this data can lead to problems, so any time you do it, it will help, but if you do it at stage 37 and you hand off at stage 38, you will have cleared out most all of anything that may have built up over time. I don't want to give the impression that it is required, but it certainly doesn't hurt, and is probably a good idea to Save-As periodically.

  • 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();

  • Switching between documents

    I used cmd+` to switch between documents many times, yet all of a sudden the short cut does not work any more. No problem with other cmd short cuts. Could anyone be of help?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain iMacs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Content Aware Scale shortcut duplicates Layer ?

    There seems to be a difference between accessing Content Aware Scale via the key shortcut and the Edit menu using CS5:
    - If I use the Edit menu to call up the Content Aware Scale command on a Layer or background it edits the item directly, replacing the original image.
    - If I use the shortcut Cmd + Alt + Shift +C to access the Content Aware Scale command, it gives me a duplicate Layer, or duplicates the image as I carry out a transform instead.
    Is this a feature by design ?
    thanks
    Photoshop CS5 Extended 12.0.1 x64
    Mac Pro 2.8ghz quad, 8gb ram, 10.5.8

    Anyone ?
    If it's not a feature it's annoying and should be fixed.

  • Creating a "Duplicate Layer", crashes CS5

    Since the update to Mac OS 10.6.7, when ever I attempt to create a "Duplicate Layer" of an image, CS5 crashes, sending an error message to the Mac persons, etc.  I can only get around this issue, by switching CS5 back to 32 bit (from 64) and re-open the image. this method seems to always allow me to create a Duplicate Layer successfully.  I normally work in Lightroom V3 and "edit" into CS5 and "save" back into LR.  This I cannot do anymore, when I intend to create a Duplicate layer.  ALL ELSE works fine and this has only occurred since I downloaded & installed the latest update to the Mac OS.
    Has anyone else experienced this dilemma and if so, does anyone have a fix?   Regards & thanks, Hyrom Jones.

    JJMack wrote:
    Your memory has failed
    On the contrary, your memory may have failed.
    ACJ81 is correct (at least as far as Ps on OS X is concerned) and the problem was mentioned in the forum not too long ago. In CS5, Alt-clicking an icon in Adjustments panel does cause a New Layer dialog to pop open and the dialog fails to appear in CS6.
    In CS6 and CS5, the dialog will appear if you pick an Adj Lyr from the Layer > New Adjustment Layer submenu, both with or without Alt modifier. (That lack of control over the appearance of an optional dialog when picking from a menu is an inconsistency in the interface.)
    In CS6 and CS5, the dialog will appear if you Alt-click the black and white circle at bottom of Layers panel then pick an Adj Lyr from the menu, as Noel said.

  • Duplicate Layer Question

    I have (long) been making a duplicate layer of a file (photo) that is cropped to the size that I want.  I place the layer on a "blank" image that is larger than the layer (e.g. 8x10 duplicate layer placed on an 11x14 image blank).  I do this so that I can have the effect of a matte around the image.  This is a pretty common technique for most persons.  However, just recently the duplicatte layer has been resizing to the size of the image blank (i.e., 7x9 duplicate layer resizing to 8x10, which is the size of the image blank).  I have no idea why this is happening and I am not able to get it to work as it always has in the past.  How do I get this to work again.  (CS6, Windows 7, 64 bit).  Thanks.

    It seems like a faster workflow would be to just expand the canvas (Image > Canvas Size). This would give you the same effect.
    However, for what you are seeing, how are you moving the duplicate layer to the new image? Drag and drop? Copy/paste? Layer > Duplicate Layer with the new document as the Destination?
    From how you describe things, my best guess is that you are copy/pasting and that the pasted layer is coming in as a Smart Object, which is auto-filling the available space.
    If you could make a video recording of your process, it could probably provide a lot of clues.

  • Line appearing between tables?

    A line is appearing between tables that I can't get rid of. I
    can't seem to make the tables touch. I took a screen of it; I don't
    want that line to be there in the white:
    http://aycu19.webshots.com/image/26338/2005650946393136015_th.jpg

    You have a mistake here -
    <td width="170" height="150" valign="top"
    class="sidebar_buttons"><a
    href="index.html" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><a
    href="index.html" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><a
    href="index.html" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><img
    src="global/nav/homebar_norm.png" alt="Home" name="Home"
    width="130"
    height="30" border="0" id="Home"
    /></a></a></td>
    Note the nested <a> tags ----------------^^^^^^^^
    That's wrong. Each <a> tag must be properly terminated
    <td width="170" height="150" valign="top"
    class="sidebar_buttons"><a
    href="index.html" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><img
    src="global/nav/homebar_norm.png" alt="Home" name="Home"
    width="130"
    height="30" border="0" id="Home" /></a></td>
    In fact, two of them were redundant, and I deleted them.
    Perhaps your line is coming from the spacer row at the bottom
    of the top
    table?
    <tr><td height="1"><img src="spacer.png"
    alt="" width="170" height="1"
    /></td><td><img src="spacer.png" alt=""
    width="530" height="1"
    /></td><td></td></tr>
    </table>
    Change this by removing the entire row -
    </table>
    and see what happens.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "mbaboy" <[email protected]> wrote in
    message
    news:[email protected]...
    > Ok, here's the code. I'm a n00b, so my code is very
    inefficient. I barely
    > know
    > how to read code, so I apoligize in advance if I gave
    you too much.
    > Basically
    > there is a table on top with two cells for the banner,
    and one below it
    > for the
    > sidebar with a few cells. The problem comes between the
    two tables. Thanks
    > a
    > lot.
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>CoreFitness Personal Training</title>
    > <link href="styles.css" rel="stylesheet"
    type="text/css" />
    > <script type="text/javascript">
    > <!--
    > function MM_swapImgRestore() { //v3.0
    > var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++)
    > x.src=x.oSrc;
    > }
    > function MM_preloadImages() { //v3.0
    > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    > var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
    for(i=0;
    > i<a.length;
    > i++)
    > if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
    > d.MM_p[j++].src=a
    > }
    >
    > function MM_findObj(n, d) { //v4.01
    > var p,i,x; if(!d) d=document;
    >
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    > d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    > if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++)
    > x=d.forms[n];
    >
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    > x=MM_findObj(n,d.layers
    .document);
    > if(!x && d.getElementById)
    x=d.getElementById(n); return x;
    > }
    >
    > function MM_swapImage() { //v3.0
    > var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array;
    > for(i=0;i<(a.length-2);i+=3)
    > if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc)
    > x.oSrc=x.src; x.src=a[i+2];}
    > }
    >
    > //-->
    > </script>
    > </head>
    >
    > <body
    >
    onload="MM_preloadImages('global/nav/homebar_rollover.png','global/nav/about_rol
    >
    lover.png','global/nav/contact_rollover.png','global/nav/trainers_rollover.png')
    > "><table width="100%" border="0" cellpadding="0"
    cellspacing="0"
    > class="banner">
    > <!--DWLayoutTable-->
    > <tr>
    > <td width="170" height="100" valign="top"
    class="sidebar_topend"><img
    > src="global/banner/logo_left.png" alt="CoreFitness"
    width="170"
    > height="100"
    > /></td>
    > <td width="530" valign="top"
    bgcolor="#6600FF"><img
    > src="global/banner/logo_right.png" alt="CoreFitness"
    width="530"
    > height="100"
    > /></td>
    > <td width="100%"
    valign="top"><!--DWLayoutEmptyCell--> </td>
    > </tr><tr><td height="1"><img
    src="spacer.png" alt="" width="170"
    > height="1"
    > /></td><td><img src="spacer.png"
    alt="" width="530" height="1"
    > /></td><td></td></tr>
    > </table>
    > <table width="170" border="0" cellpadding="0"
    cellspacing="0"
    > class="sidebar">
    > <!--DWLayoutTable-->
    > <tr>
    > <td width="170" height="150" valign="top"
    class="sidebar_buttons"><a
    > href="index.html" onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><a
    > href="index.html" onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><a
    > href="index.html" onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><img
    > src="global/nav/homebar_norm.png" alt="Home" name="Home"
    width="130"
    > height="30" border="0" id="Home"
    /></a></a></td>
    > </tr>
    > <tr>
    > <td height="30" valign="top"
    class="sidebar_buttons"><a href="#"
    > onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('About','','global/nav/about_rollover.png',1)"><img
    > src="global/nav/about_norm.png" alt="About" name="About"
    width="130"
    > height="30" border="0" id="About"
    /></a></td>
    > </tr>
    > <tr>
    > <td height="30" valign="top"
    class="sidebar_buttons"><a href="#"
    > onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Trainers','','global/nav/trainers_rollover.png',1)"><
    > img src="global/nav/trainers_norm.png" alt="Trainers"
    name="Trainers"
    > width="130" height="30" border="0" id="Trainers"
    /></a></td>
    > </tr>
    > <tr>
    > <td height="31" valign="top"
    class="sidebar_buttons"><a href="#"
    > onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Contact','','global/nav/contact_rollover.png',1)"><im
    > g src="global/nav/contact_norm.png" name="Contact"
    width="130" height="30"
    > border="0" id="Contact" /></a></td>
    > </tr>
    > <tr>
    > <td height="300"
    class="sidebar_buttons"> </td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >

  • Lighting effects smart filter shifts between documents

    I have a smart object (a rectangular shape layer) that I have applied a Lighting Effects smart filter to. I got it looking just how I wanted, then moved it over to another PSD (by dragging and dropping the layer group). When it landed in the other document, the whole effect had shifted, with the position of the light changing on me... Why is this, and can it be avoided?

    One way would be to convert your shape layer a smart object,
    then instead applying the filter, double click on the smart object thumbnail
    to edit the contents and convert the shape in the document that opens to
    smart object and apply your lighting effects filter and then save and close
    that document.
    Now when dragging between documents, the effect should stay the same.
    MTSTUNER

  • (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 );

  • Since I synced my ipad to my iMac I have duplicate photos appearing in the Photo section on my iPad and one can be trashed but the other one can't. How can I get rid of the ones without the trashcan?

    Since I synced my ipad to my iMac I have duplicate photos appearing in the Photo section on my iPad and one can be trashed but the other one can't. How can I get rid of the ones without the trashcan?

    Thanks so much. I was afraid to mess with that.  But when I unsynced them, it worked.

Maybe you are looking for

  • OC4J automatic shut down

    When I start the OC4J , window appears briefly, then shuts itself down. It was working fine earlier today . I can't figure out if I have accidentally deleted / altered any file. Please let me know what could be the problem.. The OC4J window displays

  • Problems unloading Module

    So we have a project that has two states a 'Welcome' state and a 'Module' state. We have two types of modules. One module is of type TestLab which is a component we've created. The other type of module is a blank view that will show popups as they're

  • Contact Person-- Position selected from a list?

    Hello experts, On the Business Partner Master Data Contact person tab, I would like to have a list of possible positions so I avoid users entering free text. Do you have any idea how this is possible? Formatted Searches? Looking forward to your reply

  • CSS rendering issue in Safari 3.0

    Hi, I just build a horizontal nav bar yesterday on the website. I set the width of the nav bar to 950px. when I previewed in tbrowser IE and FF, everything looks fine, but when I previewed the file in Safari 3.0, the nav bar goes all the across the p

  • Object name invisible

    Hi. When we change the name on an organizational unit in t-code PO10 with a new date and then go to t-code PPOME, we see the object ID and the new dates but the name on the org. unit is invisible. Anyone who have an idea why? Thanks  //  Peter B