Mobile app version of vmapp.org
Login or Join
Courtney577

: Illustrator: lock/unlock current layer via keyboard shortcut? 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

@Courtney577

Posted in: #AdobeIllustrator #Layers #Shortcuts

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney577

2 Comments

Sorted by latest first Latest Oldest Best

 

@Reiling762

Its Command+2 to lock,
Command+Alt+2 to unlock

10% popularity Vote Up Vote Down


 

@Margaret771

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme