133 Messages
•
5.1K Points
Wed, Mar 30, 2011 6:10 AM
Implemented
41
Photoshop: Please add the ability for Command-J to dupe layers and layer groups
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).

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).

Ideas
•
Updated
5 years ago
14
25
41
Helpful Widget
How can we improve?
Tags
implementedcs6
command-j
shortcut
dupe
copy
duplicate
layer
group
Responses
Official Solution
JeffreyTranberry
Adobe Administrator
•
15.8K Messages
•
295K Points
9 years ago
Sr. Product Manager, Adobe Digital Imaging
0
0
JeffreyTranberry
Adobe Administrator
•
15.8K Messages
•
295K Points
10 years ago
Sr. Product Manager, Adobe Digital Imaging
0
0
david_jensen_2204855
129 Messages
•
3.2K Points
10 years ago
I'll try to put something together.
4
0
julian_kussman
18 Messages
•
904 Points
10 years ago
0
0
edwardcaruso
154 Messages
•
2.6K Points
10 years ago
0
david_jensen_2204855
129 Messages
•
3.2K Points
10 years ago
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 );
}
7
aleksoctop
28 Messages
•
564 Points
10 years ago
0
0
shangara_singh
20 Messages
•
686 Points
10 years ago
}
0
dav3punk
46 Messages
•
2.3K Points
10 years ago
0
0
dav3punk
46 Messages
•
2.3K Points
10 years ago
2
scott_mahn
174 Messages
•
3.8K Points
10 years ago
0
howard_pinsky
98 Messages
•
1.7K Points
10 years ago
0
marina_thompson
9 Messages
•
498 Points
9 years ago
If you select the layers or groups you want to dupe,
you can option - drag right on the layers palette, up or down.
This will duplicate multiple layers very easily.
No script needed. Adobe is vaguely aware of this.
[Personally, I would rather this didn't work this way...
I would like a preference or documented keyboard shortcut so I could stop it!]
0
0
david_dobish
197 Messages
•
4.1K Points
9 years ago
1. Open folder where PS is installed.
2. Adobe\Adobe Photoshop CS5 (64 Bit)\Scripting\Utilities
3. Place the ScriptListener plugin into your root plugins directory.
4. Restart PS
5. Now almost every thing you do, will be written out to a file on your desktop called. ScriptingListenerJS
6. You can copy and paste the chucks of code into a seperate script to run the given function.
1. Open Extendscript
2. Paste the code into a new file.
3. save the file out as foo.JS
You now have a stand alone script.
0
0
shangara_singh
20 Messages
•
686 Points
9 years ago
Why isn't there an interface to turn the ScriptListner on and off and given a name that would attract non-scripting people to try it, or a Scripts panel on par with Actions?
3