Easily duplicate / paste layer in different group folder?

I design Web sites using Layer Comps so the homepage and innerpage examples are all in one .PSD. This means my Photoshop CC file has TONS of layers and folders that require me to scroll in the Layers Palette.
Is there a way to copy/paste or move a layer to a different group folder without dragging it? Copy/paste for layer styles is a great tool. Is there anything like this for layers themselves?
Sometimes I resort to opening a blank PSD to drag the layer to that, then go back to my source document and auto select the new group I want it in, flip back to the blank doc and drag the layer from there. That is not a great workaround if I want the positioning to be the same as the original layer.
Thanks!

Hi Nik,
use of with() is generally not good, maybe:
http://yuiblog.com/blog/2006/04/11/with-statement-considered-harmful/
without with() it looks like that:
#target illustrator
var docRef = app.activeDocument;
var ln = 'Layer 1';
var ol = docRef.layers.getByName(ln);
var nl = docRef.layers.add();
nl.name = ln+' Copy';
for (var a = ol.pageItems.length-1; a >= 0; a--) {
    ol.pageItems[a].duplicate(nl, ElementPlacement.PLACEATBEGINNING);
the second document is a new document?
var doc2 =app.documents.add();
or you can get it by name just like the layer
or by index
var doc2 = app,documets[ indexnumber  ];
then var nl should be:
var nl = doc2.layers.add();
chris

Similar Messages

  • Changing from "Pass Through" as Default in Blend Mode in a Group Folder Layer Set

    Hello Forum gurus!
    Using a MacBook Pro, 10.5.4. Painting with CS2. My question is two-fold.
    When the Group layer folder in a layer set is selected, it is displaying the "Pass Through" blend mode by default. Is there a special convenience to this? (Best use for pass through blend mode)
    Also, How may I change the default in this mode to be "Normal" as the setting when creating a Group folder layer set?
    Thanks!!
    Colene

    Matthias, now I understand. We're both right from different perspectives. If you want the adjustment layer (should there be one within the group) to affect all layers below the group (perhaps because that's the way the image looked before you made the group in the first place), then Pass Through is your blend mode. If you want that adjustment layer to affect only those layers within the group (which I often do), then Normal (or some other) is your blend mode.

  • Close Layer Group Folder in Action?

    I am using Photoshop CS4 on Windows 7 64 bit.
    I am creating an action that selects a specifically named layer in a layer group. When this happens it expands the group. However, if I try to close (collapse) the group later on in the action (by clicking the little triangle next to the group) this does not get recorded in the action. I've also tried right-clicking on a group folder and choosing "Close this group" from the pop-up menu but that doesn't get recorded in the action either. I have searched and I cannot seem to find any way to close a layer group via an action. Is this possible?

    The only way I know to close a layer group in an action is to create it  from a selected group of targeted layers. Photoshop menu Layer>New>Group From Layers. This will create a new layer group containing the selected targeted layers and the new group will be closed....

  • Hi, I've used four different Groups when emailing for the past few years, and suddenly they have stopped working. I've tried creating new Groups but that doesn't work either. I haven't changed or done anything different and it is driving me mad......

    Hi, I've used four different Groups when emailing for the past few years, and suddenly they have stopped working. I've tried creating new Groups but that doesn't work either. I haven't changed or done anything different and it is driving me mad......can anyone help, please?!

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • How to copy and paste a photo in another folder using Aperture?

    How to copy and paste a photo in another folder using Aperture?

    What do you want to achieve? Do you really want to create a copy of an image, and thus create a second copy of the master image file? You will waste disk space this way.
    Usually you would create new versions of an image, if you want versions with different adjustments. Versions do not require much additional disk space. But all versions of an  image have to be in the same project. To create a new version: Main menu bar -> Photos -> Duplicate Version
    To create a copy of an image in another project (and to waste the space ) drag the image to another project while holding down the option key. This will create a copy in the other project.
    Sofar nobody here could come up with a good reason why one would want to create a copy. I am curious what in your workflow requires you to do that. Would you mind to tell us?
    Regards
    Léonie

  • CS4: Cannot move a layer within a grouped layer set.

    I have created a layer group in Photoshop CS4. When I select a specific layer within this group to try to move it, I immediatley get bumped back to the folder and the entire group moves-- in other words I can't move that specific layer alone (I have to move it back outside the group to move it.) I know that this was not the case in the past and wondered what the problem might be. None of the layers are locked. Thanks for any help.

    Thanks Reynolds (Mark)!  That worked. You just made my day, and saved me  hours of frustration.
    Top bar, drop down menu:  "Auto-Select: Group/Layer".  > Choose "Layer"
    Voila!  you're back to selecting layers again with CTRL + LMB

  • Paste in Place = differing results

    Hi,
    Could someone explain to me why (usually when pasting on a different layer) Paste in Place sometimes pastes the objects in the far top left of the document instead of where you'd expect ie...
    in place?

    I just had exactly the same problem... but slightly different: when I "paste in front" my object on a different artboard (same size as the other one) my object appears on the far bottom right (apparently just the opposite of you)... It's really annoying as I'm using that function quite often.
    Strangely if I use "paste in place" it works fine... is it the same for you? I mean have you tried other "paste" functions?
    I suppose it is a bug but I even after restarting Illustrator it stays the same.

  • Applying adjustment layer to a group of layers

    Is there a method to apply an adjustment layer to a group of layers?
    I have a curtain on one layer of a Photoshop CS4 document.
    I duplicated the curtain twice and repositioned the copies.
    Now I'd like to use an adjustment layer to change the color of my curtains without affecting the rest of the composition (and I can't move the curtains down to the bottom because they need to sit above other elements).
    I tried grouping my 3 curtain layers together and then applygin an Adjustment Layer>hue>colorize - but that's affecting the whole composition.
    And when the layers are grouped, holding ALT while hovering between the adjustment layer and the group does not bring up the special icon that lets you apply the adjustment just to the layer beneath it.
    Would apprecaiate andive on how to apply an adjustment layer to a group of layers.
    (I can go back and apply my adjustment to the original curtain then reduplicate and reposition, but would have to repeat that procedure every time change color preference).
    Thanks?

    Put your layers in a folder, and change the folders blending mode from pass through to normal. You can then put an adjustment layer on the top of the layers in the folder, and it will only affect what is in the folder.

  • Copy/Paste Layer Style Bug

    Really, you guys didn't fix the copy/paste layer style bug in 13.0.2.  Wow, easily reproduced, there is an adobe recommended workaround, meaning very aware of the problem, and couldn't fix it for this update, very sad Adobe, very sad.  Can you let us know when this will be fixed?

    The 13.0.2 update was targeted to fix one specific bug. It was not intended to be a general bug-fix update.
    We are testing a fix now for the layer styles bug and others, and we intend to include these fixes in the next general update, which is currently slated for release in less than two months.

  • Photoshop CS6 Different Groups for Fonts?

    So I was wondering if there is a way to have a different group for a set of fonts.
    http://gyazo.com/9b6f654231e9f8493bf48de69156393e <--- In that screenshot you have different groups of brushes you can easily click, am I able to do something like this for fonts? It would help so much!

    In addition to the one TD mentioned, several other font managers allow you to activate and de-activate fonts through a Photoshop plugin. The one I was using is Main Type from High-Logic.
    Here's a nice set of capsule reviews of a number of font managers, for both Windows and Mac.

  • How to convert all artwork in single layer ? no group / a single layer - illustrator

    Hello,
    So now i'm here to ask for some help in illustrator.
    In illustrator i design some artwork and now the total layers are about several hundreads. so now i'm about to combine all those artowrk layers in one layer, so that it will be a nice clean file with text layers that are to edit and one single artwork background layer.
    Are there anyways ?

    ...but it forms a new group and i'm trying to form a new layer so that it contains all artwork but it's a layer [no group].
    That's why Steve said you can thereafter simply Ungroup. When you do, everything will be on the same Layer.
    Steve's suggestion is taking advantage of the fact that in Illustrator, you can't have members of a Group spanning Layers. Whenever you have a Group, all its members are on the same Layer. So when you Group objects which presently reside on different Layers, they all get moved to the same Layer. So simply invoking Group followed by Ungroup does what you want.
    You seem to be confused about what Groups/Layers are. The confusion is common in Illustrator.
    Just think of an Illustrator file as a list of objects. Just think of a Layer as a pair of invisible "brackets" around a single range of items in that list. Just think of a Group as the same thing; it's just another pair of brackets around a single range of items in the same list. Both of the "brackets" of a  Group have to be between the "brackets" of a single Layer.
    Ill Illustrator, the Layers palette doesn't just list Layers. It also lists all the objects in the document. So the vast majority of the listings in the Layers palette are not Layers; they are just objects which reside within a Layer.
    Every object resides on a Layer. You can't have an object that isn't in a Layer. That's why every document contains at least one Layer.
    An object does not have to reside in a Group. But if it does, that Group resides within a single Layer. A Group is one of the kinds of objects which can reside in a Layer.
    All objects in a Group are contiguous. There are no "jumps" or "gaps" between the objects in a Group. They are all next to each other in the list.
    All objects in a Layer are contiguous. There are no "jumps" or "gaps" between the objects in a Layer. They are all next to each other in the list.
    So again, just think of a Layer as a pair of "brackets" around a portion of a list of objects. Just think of a Group as an optional pair of "sub brackets" within the "brackets" of a single Layer.
    JET

  • TS3276 Mail has started sending duplicates of a message, especially group messages.  It also opens 2 windows for writing a new email.  Help.

    Mail has started sending duplicates of a message, especially group messages.  It also opens 2 windows for writing a new email.  Help. How do I fix this?

    Unfortunately there isn't official commercial support for Mozilla Thunderbird from Mozilla Corp.. I believe some contributors here ([http://mozilla.magicfab.ca myself included]) do offer such support, though.
    ''Before doing anything else, please do exit Thunderbird completely and [https://support.mozilla.org/en-US/kb/profiles-tb#w_backing-up-a-profile backup the profile folder] - it contains all your email, settings, filters, etc.''
    Regarding your issue, it looks like the mail folder information may be corrupt. In the left pane, in the folder list, right-click on the Sent folder and select '''Properties'''. Choose "'''Rebuild Index'''" or "'''Repair Folder'''" - do you even have that option? Once done, exit TB completely and restart it.
    Updating to a newer version will help anyone help you, if only because some of the documentation for older Thunderbird versions is a bit harder to find and testing to try & reproduce your problem will be harder. Don't do this just yet, though :)
    After this issue has been addressed I would suggest considering using IMAP if your provider allows you to, and of course archiving your email to Local Folders and doing regular backups of your profile.
    If you want to arrange commercial support, contact me via the link I provided above and we can discuss rapidly. Otherwise I am fine continuing here, however I can only reply as time permits. I am in Montreal (so, EST time zone).

  • How do you duplicate a layer and then change its adjustment layer?

    This used to be easy in PS7, but it's evasive in CS4. We occasionally need to duplicate a layer and then change the adjustment layer. For instance, we might have selected a section of an image and used brightness contrast and then need to create a new layer using the same section using selective color. What we have done in the past is duplicate the layer and then change the adjustment layer. Any ideas?

    You're great!
    Thanks a million, we've been struggling with this for at least a year.
    Jim
    Jim Kosvanec, Pres.
    Giclee By The Bay, Inc.
    Stretcher Bar Warehouse (805-528-3322)
    1236 Los Osos Valley Rd. Ste. V
    Los Osos, CA 93402
    800-877-9055
    805-528-2244
    Fax: 805-528-2233
    Hours: 8:30-5 PST M-F
    Web: GicleeByTheBay.com  and StretcherBarWarehouse.com

  • Group Folder not being created

    Within workgroup manager for particular groups I have selected an auto mount folder as a group folder. I have also specified diradmin as the owner. Now I assume once doing that Workgroup Manager should automatically create a folder for that group... however it isn't doing that? Can anybody help me as to why it is not working correctly?

    Hi
    In the past (10.4) it could take anything up to 3 days for the Group folder to be created - yes it's true. Issuing this command:
    sudo /usr/bin/creategroupfolder
    Got it done quickly. Now days I prefer to create my own and make a created group the owner. Less time and fuss.
    Tony

  • Many duplicate addresses in iCloud, Mac, group

    I have TONS of duplcate Address Book records. They are in AB groups I've created as well as in the On My Mac category and also in iCloud. What is the best way to resolve them? Note: AB's Look for Duplicates command is not an option because it doesn't let me decide how to resolve them. Besides, it only picked up three dupes.
    Obvously there will be a copy in iCloud, right? What about those in On My Mac, and those in my created groups? What should I keep and what should I delete?
    I would appreciate any help you can provide. Thanks!

    I have had a similar problem in my recent conversion to using iCloud. I have over 4500 entries in Address Book, subdivided into about 50 different groups. When I moved to iCloud, all the groups disappeared in iCloud and on my Mac. Fortunately they still exist on my iPhone, but I have found no way to get them back on to my Mac where I need them the most. Re-creating all the groups would be a huge task!
    Individual entries seem to sync OK in all 3 places, but the Groups do not sync.

Maybe you are looking for