Customize the 'steps' of brush size when increasing/decreasing it with shortcuts

In the current version of Krita, when one presses the shortcut to increase brush size, it works like this:

1 → 2 → 3 → 4 → 5 → 6 → 7 → 8 → 9 → 10 → 11 → 12…

But I’m not a pixel artist and I never need to distinguish a 5px brush from a 6px one. I’d like it to, for example, multiply the brush size by 1.5 and round up to the closest integer:

1 → 2 → 3 → 5 → 8 → 12 → 18 → 24…

Or even fancier, use a Fibonacci sequence:

1 → 2 → 3 → 5 → 8 → 13 → 21 → 34…

There is at least another member who has the similar issue:

Can I change brush size/opacity increase/decrease shortcut value? - Support and Advice / General Questions - Krita Artists

It also fits in Krita’s overall design decisions, as Krita already allows us to customize zoom steps:

And shade selector steps:

But there is no way to do this without a plugin/script.

1 Like

I would add it should also be compatible with the liquify tool “brush” size, but only when the transform/liquify tool is active. There are a few other feature requests for syncing or adjusting the liquify size.

If you find/anyone finds this useful, here is a plugin that adds 2 actions for halving or doubling brush size, it also works with the transform tool liquify mode (when it is active). Liquify size is not linked to brush size.

1 Like

Thank you for the script.

Sometimes I find Krita’s API design is programming horror movie :sweat_smile: One has to access the UI element directly to know if liquidify tool is active…?!

1 Like

There is a small issue though. When the action is invoked, while the brush size is correctly updated, the brush preview on the canvas doesn’t change until the user moves the cursor. It is possible to force Krita to refresh the preview?

I would lean towards no, it’s probably something more internal than the Python API or PyQt. Tbh I may have gotten so used to it I don’t notice it anymore :thinking: Most of the time I’m holding a stylus and its never completely still like a mouse and that’s enough to update it. But you never know, there may be some obscure “slot” in a widget related to the brush tool or canvas that can be executed, forcing an update. Some unrelated action triggered 10ms after the brush size change may also

That was my thinking… but as I was writing it remembered a similar issue in another plugin or script, it seems we can just move the mouse 1 px down :slight_smile: I updated the plugin.

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.