Is it possible to toggle the locked/unlocked state of the current layer via keyboard shortcut? I'd love to be able to toggle show/hide for layers as well.
here's a one-liner script that toggles active layer visibility
app.activeDocument.activeLayer.visible ^= 1;
this other one-liner toggles lock/unlock
app.activeDocument.activeLayer.locked ^= 1;
install those 2 scripts into your default scripts folder, then create two actions to run them, assign them shortcut keys and you're all set.
Its Command+2 to lock, Command+Alt+2 to unlock
protected by Mᴏɴᴋᴇʏ♦ Jun 28 '17 at 13:39
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?