Lee Mac Posted July 22, 2014 Posted July 22, 2014 Another, simple one: (defun c:tog nil (command "_.-layer" (if (setq tog:flg (not tog:flg)) "_off" "_on") "H-*" "") (princ) ) Quote
takeanosan Posted July 23, 2014 Author Posted July 23, 2014 Thanks Lee for your input, your script works excellently and is probably closest to what I would envision the code to be. Tharwat, I found out that I could add multiple filters to the lisp, E.g. "H-*,h-*" hence filtering both upper and lower case. The codes proved useful =p Now I don't have to mess around with layer state manager nor manually going to the layers tab and changing the visibility. I did another version where I changed the filter with a pause which enabled me to input my own filter on the go. It was pleasant learning from you all, and your help is much appreciated. Quote
Tharwat Posted July 23, 2014 Posted July 23, 2014 Tharwat, I found out that I could add multiple filters to the lisp, E.g. "H-*,h-*" hence filtering both upper and lower case. You did the correct way with that modification . The codes proved useful =p Now I don't have to mess around with layer state manager nor manually going to the layers tab and changing the visibility. I did another version where I changed the filter with a pause which enabled me to input my own filter on the go. It was pleasant learning from you all, and your help is much appreciated. Good for you . Quote
Recommended Posts
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.