I've tried many ways to unlock a partially locked layer in Photoshop using Javascript but nothing works. Here's a few examples of what I've tried:
var layerRef = app.activeDocument.artLayers.getByName('Background');
layerRef.allLocked = false;
The below alert returns false
:
alert(app.activeDocument.layers[0].allLocked);
So it's not locked? I just want to convert this partially locked layer to a not locked layer.
My documentation source:
https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-cc-javascript-ref-2019.pdf