Skip to main content
marcbjango
Known Participant
March 30, 2011
Released

P: Please add the ability for Command-J to dupe layers and layer groups

  • March 30, 2011
  • 53 replies
  • 2021 views

Command-J duplicates the entire current layer, or a portion of the current layer, if there’s a selection. It’s a great feature, and one I use daily.

For some strange reason, Command-J doesn’t do anything when there’s two layers or a layer group selected. Why? I realise there’s probably a decent technical reason for this, but a context sensitive “just dupe it” command would be really handy, even if it’s actually several different methods behind the scenes.

Is now a good time to mention that the Layer menu already contains an item that does most of these things, but it doesn’t have a keyboard shortcut by default? Pre-emptive strike: Assigning a keyboard shortcut wouldn’t help, as the menu item doesn’t duplicate selections within a layer (Command-J does).


Image is not available

53 replies

Edward Caruso Photography
Participating Frequently
April 10, 2011
David - that is great. thank you. Just wondering - can you script adjustment layers so that they always open in the CS3-style modal dialogues? I'm sure it can be done somehow.
Known Participant
April 10, 2011
Inspiring
April 8, 2011
David Jensen, you rock. If you don't mind, I'm going to post the script on my blog tonight for everyone to use and download. If you mind, let me know, I won't keep it up. 🙂
Legend
April 8, 2011
Cool.
Known Participant
April 8, 2011
Put this script into photoshop/presets/scripts and assign it to cmd-J. It should do exactly what you've requested.

try{
var idCpTL = charIDToTypeID( "CpTL" );
executeAction( idCpTL, undefined, DialogModes.NO );
}catch(e){
var idDplc = charIDToTypeID( "Dplc" );
var desc172 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref3 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref3.putEnumerated( idLyr, idOrdn, idTrgt );
desc172.putReference( idnull, ref3 );
var idVrsn = charIDToTypeID( "Vrsn" );
desc172.putInteger( idVrsn, 5 );
executeAction( idDplc, desc172, DialogModes.NO );
}
Known Participant
April 5, 2011
This wouldn't merge them. I don't know how helpful that would be, though.
marcbjango
Known Participant
April 5, 2011
We have Copy Merged for doing that (which I use regularly!).
Edward Caruso Photography
Participating Frequently
April 1, 2011
it would make sense to me that command-j would also dupe groups like it does layers. please add.
Participating Frequently
March 31, 2011
One of the first key commands I add is CMD+opt+G to dupe groups of layers. (It's not taken by anything I use)
Known Participant
March 31, 2011
Ah.... I misunderstood. I thought you wanted to be able to dupe a selected potion from multiple layers... i.e. Command-J with a selection for multiple layers at once.

You were just asking to combine 2 shortcuts/commands into one a single command. That definitely makes sense.

If you would still find super cmd-j with a selection useful I could give you something 🙂