Skip to main content
Adobe Photoshop Family

133 Messages


5.1K Points

Tue, Apr 12, 2011 3:13 PM


Photoshop: Would be good if duping layers respected Clipping Mask state

Duplicating a layer in the middle of a stack of clipped layers creates a new layer that's not part of the clipped stack. It creates a new stack with everything above it clipped.

1. "Gradient Fill" is duplicated using command-J.
2. "Shape" is now clipped to "Gradient Fill", instead of all the layers being clipped to "Color".

I'd expect a duped layer to remain part of the same clipping stack.


129 Messages


3.2K Points

10 years ago

JustDupeIt2 will keep the clipping mask state. It will create two history states, but I could wrap them in a single "Just Dupe It" state if that would be more helpful :-)
It doesn't do anything to fix any problems Photoshop may have with duping multiple clipped layers at once.

var idCpTL = charIDToTypeID( "CpTL" );
executeAction( idCpTL, undefined, DialogModes.NO );
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 );

133 Messages


5.1K Points

Thanks again David. That'll certainly help some of us until this gets resolved.

704 Messages


9.4K Points

If you Alt (option)+drag the layer(s) in the layers panel to duplicate (copy)
them, then that should keep the the clipping group intact.

It won't work if you try to move the layers out of the clipping group: ie above or
below the clipping group.

56 Messages


1.8K Points

9 years ago

Excellent request Marc! The work around here is copy-paste, but I agree - Adobe should look into this. ;)