Bug 410272 - Option to set brush size increments
Summary: Option to set brush size increments
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 4.2.3
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: accessibility, usability
Depends on:
Blocks:
 
Reported: 2019-07-27 11:38 UTC by cornellg
Modified: 2019-10-07 15:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Python script that would solve this issue. (4.63 KB, application/zip)
2019-09-20 15:19 UTC, wolthera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cornellg 2019-07-27 11:38:44 UTC
SUMMARY

I would like to be able to use the hotkeys "[" and "]" to change the brush size by logarithmic increments e.g. every press doubles or halves the size of the brush.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT

The current brush size increments are fixed values that change relative to the brush size to stay relevant. Bug 325295 relates to tweaking this, but for my painting process, though the hotkeys are the most convenient way to change the brush size (others being too imprecise, finicky or unpredictable) it is still so slow to cover the frequent large size changes I want to do.

As a result, I find myself making lots of custom brush presets at every sensible size I need (16, 32, 64, 128, etc) for every brush I use frequently. As I create lots of unique brush presets and tweak them often, this multiplies the number of brushes I need to use and maintain, slowing me down and cluttering my brush preset panels. 

EXPECTED RESULT

If only I could set a multiplication factor for the brush size increments so that pressing the hotkeys would eg double or halve the size of the brush. Then I wouldn't need to make size versions of all those brushes for fast use. In my opinion, implementing the brush size changes that way would give every user freedom of how fine the steps should be while keeping the whole thing very intuitive, simple, precise and predictable.

At the very least, being able to set a multiplication factor for the size change increments as they are implemented now would be helpful. In that case, I could just speed up the changes so that every keypress would change the brush size by roughly a factor of 2.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 wolthera 2019-07-27 13:04:36 UTC
Might it be helpful for you to have a python script that does this? Because it is possible to create actions via python that increments/deincrements based on a list of preset values, and then to assign that to the [ and ] keys.
Comment 2 cornellg 2019-09-17 14:49:18 UTC
(In reply to wolthera from comment #1)
> Might it be helpful for you to have a python script that does this? Because
> it is possible to create actions via python that increments/deincrements
> based on a list of preset values, and then to assign that to the [ and ]
> keys.

Sorry for the late reply. Yes! Yes, that would certainly be useful. I never realized that was a possibility. That would be a complete solution to the problem, as far as I am concerned.
Comment 3 wolthera 2019-09-20 15:19:55 UTC
Created attachment 122764 [details]
Python script that would solve this issue.

So, I have attached a python script that would normally solve your issue(it creates actions that increase and decrease the brush size based on a predetermined list of sizes), however, it seems that I can't get them to work with shortcuts, because the local python actions aren't being loaded. (Bundled python actions *are* being loaded)

The stupid thing is that I recall someone else remarking on this, but apparantly they didn't report the bug when I asked them to :(
Comment 4 wolthera 2019-09-20 15:23:26 UTC
I reported the bug for the shortcuts stuff here: https://bugs.kde.org/show_bug.cgi?id=412125
Comment 5 Halla Rempt 2019-09-28 08:27:42 UTC
I fixed bug 412125 just now.
Comment 6 cornellg 2019-09-30 13:16:08 UTC
Thanks both, much appreciated. I'm looking forward to using these!
Comment 7 wolthera 2019-10-07 15:40:35 UTC
I'll set this to resolved then. If you wish to adjust the list of predefined sizes, it's specified inside the python plugin which ones to change(line 26 of custombrushsizecommand.py. You can't miss it) You should be able to change the shortcut assigned in the shortcuts dialog now.