PS Script, add layer mask to current layer
I'm trying to keep this as simple as possible, so far this is how my script works. At the end I want to add a black layer mask to the document?
Whats the simplist way to make this happen?
#target photoshop
var docRef = activeDocument
var newdLayer = docRef.activeLayer.duplicate();
newdLayer;
var doc = app.activeDocument;
doc.activeLayer = doc.artLayers.getByName("Main Image copy");
doc.activeLayer.applyMedianNoise(12);
doc.activeLayer.applyAddNoise(3, NoiseDistribution.UNIFORM, true)
doc.activeLayer.applyDespeckle()
