• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Shortcut "lock active layer" ?

Community Beginner ,
Apr 03, 2022 Apr 03, 2022

Copy link to clipboard

Copied

Hello everyone is there a way to lock the current layer with a shortcut ?

I'm aware of the command ctrl + 2 but this is not what I'm looking for.

I'm basically in the process of speeding my workflow and working exclusively with a drawing tablet  and shortcuts.  and I have to say I'm pretty  surprised by the huge amount of basic functions that are not assignable to shortcuts…

so after some research I come here because I don't find any solution  and I guess my only way to go with this would be to run a script and then I sing this script activation to a target with a third-party program right ?

and then you had to learn how to code to  use illustrator

TOPICS
How to , Scripting , Tools

Views

167

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 03, 2022 Apr 03, 2022

try this to lock the active (highlighted) layer

activeDocument.activeLayer.locked = true;

 

change to false to unlock it

Likes

Translate

Translate
Community Expert ,
Apr 03, 2022 Apr 03, 2022

Copy link to clipboard

Copied

try this to lock the active (highlighted) layer

activeDocument.activeLayer.locked = true;

 

change to false to unlock it

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 30, 2022 Sep 30, 2022

Copy link to clipboard

Copied

LATEST

Works like a charm ! 
Thanks again Carlos 🙂

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines