December 03, 2009

New panel, scripts let you batch-eliminate “copy” in PS layer names

God bless scripters and the spirt of “Just Do It.” Responding to reader feedback here about the desire to remove “copy” from duplicated layers, scripter Mike Hale used Configurator to create a simple panel (screenshot) that does just that–nuking “copy {#}” from all layers or just the selected layers.

  • The panel for Photoshop CS4 is downloadable from PS-Scripts.com. It’s wrapped as an MXP file, meaning you can simply double click it to install it using Adobe Extension Manager. After installing the panel, relaunch Photoshop and look under Window->Extensions for “RemoveCopy.”
  • Sometimes Extension Manager doesn’t play well with Vista (as I think it requires you to be logged in as an administrator), so I’ve posted the panel in a simple ZIP package as well. You can unzip the contents, then place the panel folder into “Adobe Photoshop CS4/Plug-ins/Panels.”
  • You might want to use the scripts on their own (not via the panel), especially if you like to assign keyboard shortcuts to commands. You might also want to use them in CS3 or older versions of Photoshop. Therefore I’ve posted just the scripts as well. Drag the expanded contents to “Adobe Photoshop CS{whatever}/Presets/Scripts,” then relaunch PS. Once they’re installed, you can choose Edit->Keyboard Shortcuts & assign shortcuts if you’d like.

Thanks to fellow coders Trevor Morris and Jeff Tranberry for their quick help in making this happen. Please give Mike props & speak up if you encounter any problems.

Posted by John Nack at 7:02 AM on December 03, 2009

Comments

  • Cass — 9:44 AM on December 03, 2009

    That was fast! I’m using CS3 and the script worked perfectly on a 1 GB file that had a million “copys”. “Flower 13 copy 2″ right to “Flower 13″. Perfect! Thanks! Saved me so much time, and avoidance of the dreaded pinwheel when I try to rename layers too quickly.
    [See, and you didn't even have to ask your dad to write the script. :-) --J.]

  • Cass — 11:28 AM on December 03, 2009

    You sassin’ me Nack?
    [Yes, though I should shut up or you'll never consent to sneaking pics of my sons into some fleeting background on Wonder Pets... --J.]

  • Thomas — 6:47 AM on December 04, 2009

    Hmh …
    PS CS5 a.k.a. “Panelshop”?
    I’m very afraid :/
    [Remind me not to try to hook you up in the future, Thomas. --J.]

  • Thomas — 2:15 PM on December 05, 2009

    Aye, aye John.
    You’re the Captain of this Boat.
    :/

  • Uggs on sale — 1:06 AM on December 08, 2009

    uggs on sale with 50% dicount.All boots in our site are high quality.I think you can buy them with a gift
    for christmas day!

  • RUGRLN — 12:22 AM on December 27, 2009

    Simply amazing….loving it….Thanks a billion Mr.Nack!!
    This has made me love Ps even more :D

  • andy matthews — 10:35 AM on January 13, 2010

    While I love this script (being a compulsive layer namer), I see the primary use for this as being cleanup for PSDs provided by other people who don’t share my…compulsion.
    Easier to just name them as you go along right?
    CTRL + SHIFT + N creates a new layer and lets you name it.
    CTRL + ALT + J dupes selected layer (and/or current selection) and lets you name it.
    CTRL + SHIFT + ALT + J cuts the current selection to a new layer and lets you name it.

  • Eddie Wilson — 11:32 AM on March 18, 2010

    Where in the Keyboard Shortcuts are the entries for the script? Application Menus, Panel Menus?
    [Look in Application Menus under File->Scripts. --J.]

  • Carson — 5:00 AM on August 17, 2010

    Will this work in CS5 as well?

    [It should, but note that CS5 includes a preference for omitting "copy" in the first place if you'd like. --J.]

  • Jim Mortensen — 12:21 PM on August 14, 2011

    Hey John –

    Long time reader, first-time commenter.

    I’m a Storyboard Artist at Nickelodeon that uses PS for storyboarding. I set up some actions that create named/colored layers for our characters (“Robot 001″ inside a “Robot” group). What I’d love to have is a script that automatically duplicates
    “Robot 001″ and increments it by one to “Robot 002″. Do you know of such a script? Google has been unhelpful, except for pointing me here.

    We’re on CS4, so I can’t test whether the CS5 option of not adding “copy” to the layer name still increments the #.

    –jim m.

Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use | Privacy Policy and Cookies (Updated)