How to release clipped layers
How to release clipped layers with javascript? I need to write a script which will release all clipped layers.
P.S. Number of clipped layers are not always 3 (like on example below)

How to release clipped layers with javascript? I need to write a script which will release all clipped layers.
P.S. Number of clipped layers are not always 3 (like on example below)

Ok, below is an example.
P.S. Structure of layers is different case by case, also names of layers are not definded.

OK, so layer A is selected. What now? Is it that A1/A2/A3 should then be unclipped, while the clipped layers of B and C remain unchanged? What you require is not clear to me...
// Release clipping layers from base layer
#target photoshop
app.bringToFront();
function main() {
app.runMenuItem(charIDToTypeID("GrpL"));
app.runMenuItem(charIDToTypeID("GrpL"));
}
app.activeDocument.suspendHistory("Release clipping layers", "main()");
Presuming that the "base" layer A is selected, the above script will toggle clipping on/off – which has the side effect of releasing clipping on all the layers originally clipped to layer A!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.