many times a day, I click and unclick the little lock icon for the scale tool, as I have set up a keyboard shortcut for the scale tool itself, I would like to know if there is the possibility of setting one up to toggle the little lock on and off
What lock do you mean?
the one near the scale tool
This one?
Can you describe your use case?
yes, that’s the one. I have set up a keyboard shortcut for the scale tool itself, however, some times I want to scale just width (sometimes height), therefore I would like to know if there is the possibility of setting up a keyboard shortcut to toggle the proportional/non-proportional aspect (this would save having to always mouse over to the little lock). I could do this in Keyboard Maestro, but would need 2 macros to accommodate the changing icon
If the keyboard focus is in the one of the percentage text fields, you can use the tab key to move the focus to the lock (you probably need to enable this:
in System Preferences > Keyboard > Shortcuts.
Or you can set the underlying user default with a script:
Glyphs.defaults["GSTransformScaleProportional"] = True/False
put it into a script and assign a shortcut to it.
Or to toggle it:
Glyphs.defaults["GSTransformScaleProportional"] = not Glyphs.defaults["GSTransformScaleProportional"]
thanks
thanks 2