Skip to main content
henri4home8824
Participant
July 14, 2019
Answered

Duplicating a layer centered to a another document

  • July 14, 2019
  • 3 replies
  • 2900 views

How do you duplicate a layer of a document A to another document B, and have it by default in the center of the document B ?

This works in Photoshop CC2015 : if document A is a layer, it gets duplicated in the upper left corner of document B ;

if you flatten document A to a Background, then it gets duplicated in the exact center of document B ;

This does not work any more in Photoshop CC2019 : in both cases, picture A gets duplicated in the upper left corner of picture B. How do you get it duplicated in the center as before ??

This topic has been closed for replies.
Correct answer JJMack

If you use  menu Layer>Duplicate Layer and in the  duplicate Layer dialog select an other open document  it will be aligned top left.  However if you target one or more layers in the layer Palette then drag them from the layers Palette and drop them onto an other document while pressing the shift constrain key the duplicated layers will be aligned centered.

3 replies

henri4home8824
Participant
July 14, 2019

Found another way of doing it, in fact plain as pie :

Picture A : Command-A (select all) + Command-C (Copy)

then activate picture B : Command-V (Paste) : the picture A is well placed in the middle of picture B.

This can be scripted in an Action and should work on all versions of PS ... hopefully.

Stephen Marsh
Community Expert
Community Expert
July 14, 2019

Yes, however, it uses the clipboard which the dupe does not (which may or may not be of concern to you).

Stephen Marsh
Community Expert
Community Expert
July 14, 2019

You can also create an action or a script to dupe and then centre align the new layer if you like the duplicate command or wish to incorporate this into a larger automation sequence.

henri4home8824
Participant
July 14, 2019

YES, you can manage this in a two-step action : first duplicate (picture A will get placed at the upper left corner of picture B), then center the new layer activating the Displacement Tool and then clicking the "center" icon.

So what was a one-step order beforehand is now a two-step order in CC2019. An improvement ??

And I have to check what the new script will give if it is used with the previous versions of PS .

Stephen Marsh
Community Expert
Community Expert
July 14, 2019

I just checked in CC2018 and it does indeed centre the dupe, whereas in CC2019 it is aligned to the upper left.

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
July 14, 2019

If you use  menu Layer>Duplicate Layer and in the  duplicate Layer dialog select an other open document  it will be aligned top left.  However if you target one or more layers in the layer Palette then drag them from the layers Palette and drop them onto an other document while pressing the shift constrain key the duplicated layers will be aligned centered.

JJMack
henri4home8824
Participant
July 14, 2019

YES, this works if you do it by hand. But it wont register as an Action.

I need to incorporate this in a bigger sequence.