Hello everyone,
when I use the assistant tool (mainly the vanishing point) I also need to draw for a few moments with the snap off.
So I thought if it would be possible to add some shortcut to momentarily turn off the snap. Something that works the same way as the shortcut V (line tool). A shortcut that works as long as you keep it pressed (when you release the key the previous tool returns)
The ideal key for this hypothetical shortcut would be ALT, but the Z key looks OK too. I even set it to Z (to turn snap to assistants on and off) but you always have to press the key twice. One to turn on and one to turn off.
Sadly, on my Debian MATE system, the Alt key is used at the system level to move application windows and this can’t be turned off, as far as I can tell.
EDIT:ADD After a bit of reading I’ve found it and changed it to Super(Windows).
However, the Alt key and Shift+Alt do not work properly in krita.
e.g. Alt does not give a forced subtraction of a selection even though the cursor indicates ‘-’ and Shift+Alt does nothing.
Ctrl and Shift do work.
Strangely, Ctrl+Alt forces a Symmetric Difference selection even though this does not have any modifier listed in the manual: Selections — Krita Manual 5.2.0 documentation
I’ve looked in the Canvas Input Settings for clashes and can’t find anything.
Oh well, another mystery
As far as I know the gnome and KDE people moved this shortcut to the meta key. Perhaps we should file a report to mate to move this shortcut to meta key so that Alt key is free for the applications.
Open krita resource folder in your file explorer (Settings > Manage Resources > Open resource folder)
Open <resource folder>/pykrita/toolModifiers/importCode/passFunctions.py file with any text editor.
Change both occurences of "erase_action" to "toggle_assistant" (lines 34 and 39)
Restart krita and set a shortcut of Eraser (toggle) to z.
Works for me Then if you read this code a little bit, even without knowing much about python, maybe you could do it a little bit less hacky, with changing the name of action, or even making it as a separate one (how it should be done).
This sounds good, however I think I’d prefer a shortcut for temporarily enabling lock to assistants while a key is pressed. That would make it consistent with how the line drawing shortcut works.
In many canvas editing software, you can hold down a key while doing an operation to NOT have that operation honor snapping.
Today I have snapping on Image boundaries and midpoints enabled, but sometimes when I’m trying to do a polygon selection I can’t be accurate if that selection is near the middle of the image since there is a snap point at the midpoint. Just like with any other snapping, sometimes you actually need to position something or draw something that doesn’t honor snapping. Unfortunately there isn’t any hot key to tell the operation “don’t honor snapping”
Adding this hotkey would enable workflows to continue faster vs. having to stop the operation and goto the Snap-To options or Guide options to turn off… then restart the operation, then re-enable the snapping.
EDIT: I do see this request was filed back in 2021, but it doesn’t look like there was anything done except - you can write a script for it. “Shortcut to turn off ‘snap to assistants’ momentarily - Develop / Feature Requests - Krita Artists (krita-artists.org)(Shortcut to turn off 'snap to assistants' momentarily)”
I just was annoyed by this too, a few days ago. Honestly, for me a disable all checkbox would be enough already (instead of disabling them manually one by one which is annoying since the menu closes every time). A shortcut would be even smoother.
Then I like to suggest combining/merging both requests. This assures a higher number of votes because they aren’t split over topic-borders, additionally it helps to concentrate all discussion and information about this topic in one place (topic).
Because you are stating yourself the requests are the same, I guess you are okay with it, @markri?
By the way, in case you got votes left, you should consider voting for your own feature request. You can cast your vote in your opening post on the left side of your headline.