Jump to content

Mapping commands to a keyboard shortcut


Recommended Posts

Posted

Hello-

 

Is it possible to map a command to freeze / unfreeze a specific layer to a keyboard shortcut? I have two layers that I use a lot when working in 3D that I turn on and off all the time and it would save some clicking.

 

Thanks.

Posted

Do you want the same keyboard shortcut to toggle betwen Frozen/Thawed, or can you live with 2 different shortcuts?

Posted

I think I'd actually prefer it to be different.

Posted

Try these LISP functions. Change LAYER1 and LAYER2 to your layer names

 

(defun c:LFR () ; freezes layers
 (command "_.layer" "_f" "LAYER1,LAYER2" "")
 (princ)
)

 

(defun c:LTH () ; thaws layers
 (command "_.layer" "_t" "LAYER1,LAYER2" "")
 (princ)
)

Posted

Sorry, I had a typo on the thaw one before

 

(defun c:LTH () ; thaws layers
 (command "_.layer" "_t" "LAYER1,LAYER2" "")
 (princ)
)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...