Photoshop Script – Deselect Layers
1 2 3 4 5 6 7 8 9 10 11 12 |
#target photoshop cTID = function(s) { return app.charIDToTypeID(s); }; sTID = function(s) { return app.stringIDToTypeID(s); }; function Deselect_Layers() { var desc1 = new ActionDescriptor(); var ref1 = new ActionReference(); ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt')); desc1.putReference(cTID('null'), ref1); executeAction(sTID('selectNoLayers'), desc1, DialogModes.NO); }; |
Leave a Reply
Want to join the discussion?Feel free to contribute!