Page 1 of 1

how do you set shortcut for lock the current layer?

Posted: 08 Sep 2022, 18:40
by Markxu
I can't find it in the shortcut panal :?

Re: how do you set shortcut for lock the current layer?

Posted: 08 Sep 2022, 22:03
by Svengali
I don't think the shortcut key you are looking for exists, try this:

You can use GEORGE scripting to create a button that will toggle the layer lock... then you can assign a shortcut key to it like this:

1. Choose an existing Custom Panel and create a new button in the panel using Add Action.
2. Edit the button for the Action and Name it Toggle Layer Lock
3. While still in the editor you can click to create an Embedded George Script with three GEORGE Script lines:

IN THE EMBEDDED GEORGE SCRIPT WINDOW TYPE THE FOLLOWING:
line one: tv_LayerCurrentID
line two: LayerID = result
line three: tv_LayerLock LayerID TOGGLE

4. press OK - That button can now be called by assigning it to a shortcut key.
5. Open the Configure Keyboard Shortcuts window
6. Select the shortcut key you want to use (which should become highighted)
7. In the search option at the top of the Shortcuts window, type in Toggle Layer Lock
8. Select the newly created button's name Toggle Layer Lock (which will show up in the list underneath the Custom Panel's name where the button was created.)
9. Click the assign button and press OK to close the Configure Keyboard Shortcuts window.

Now, you can toggle the current layer's Lock on and off using the assigned shortcut key.

sven