Shortcut Composer

What’s new in 1.7.1

This release acknowledges transparency issues when using DirectX canvas acceleration (specific to Windows, krita 6), by displaying a warning message on startup.

Also, the system responsible for animating the pie was rewritten to be FPS independent - the animations should no more take longer on a low-end PC.

Added

  • Warning on windows in krita 6, when OpenGL is not used. (reported by dk8)
  • 16 missing actions in “Activate krita action” pies. (reported by displayerror)

Modified

  • Animation system was rewritten to be FPS independent (reported by Caubo)
  • “Fade-in animation duration” and “Pie label animation duration” are now separate config fields in the “Configure Shortcut Composer” dialog.

Fixed

  • Broken zoom in “Scroll canvas zoom or rotation” action since krita 5.3/6.0. (reported by gompami)
2 Likes

Hi! Recently switched to ubuntu and im having this weird bug where wheels flicker when i move my cursor out of the zone. No idea what could cause it. I tried resetting it a few times but to no avail. Reassigning the menu to a different key does nothing as well so its not the keyboard either :confused:

Recorded the behavior:

Using Ubuntu 24.04.4 and Krita 5.3.1 stable version

upd: installed the newest appimage and everything seems fine now :0

1 Like

Hello,

The Tracker Deadzone is 0 but I still need to move my mouse a little bit to start changing the brush size. Is it possible to disable this behavior or decrease the distance threshold?

From what I see this value is indeed hardcoded in axis_trackers.py to 25 pixels. (line 71)
You could try to lower it down but it may become hard to pick the right tracker.

If you are not using the second tracker you can remove it in actions.py, as then there is no need for a deadzone:

    templates.CursorTracker(
        name="Scroll brush size or opacity",
        horizontal_slider=Slider(
            controller=controllers.BrushSizeController(),
            values=Range(1, INFINITY, exponent=2),
            sensitivity_scale=2,
        ),
-        vertical_slider=Slider(
-            controller=controllers.OpacityController(),
-            values=Range(10, 100),
-            sensitivity_scale=10,
-        ),
    ),

To open plugin files go Settings > Manage Resources > Open Resource Folder > pykrita > shortcut_composer

2 Likes

Any way to bind pie menu shortcuts to mouse buttons instead of keys?

No. Krita shortcut system does not allow it.

If you use a graphical tablet you can try to make it emit keyboard events on stylus buttons being pressed (I do that) but then you lose access to the original mouse button.

1 Like

hello, how can i toggle snap to assistants as temporarty tools
sorry my english bad

Sorry for the late response.

Sadly, this is not possible at the moment. Some time ago I reported an issue with krita that some actions cannot be toggled the way eraser or alpha inheritance can. If this get changed by krita team, it will get easy to achieve in a plugin.

Related issue:

1 Like

The plugin is really amazing, thank you for sharing it with us!
May I ask where did you get the oil paint smudge brushs?

I kinda feel three pie menus are not enough. Is it possible to add one more category (or making the number of pie menus configurable)?

@Kaaivs

I do not know which video/smudge brushes are you refering. Most likely it is either from my brushpack:

Or from memileo’s impasto brushpack:


@Y.H.Lai

You could have as many of those as you want. In `actions.py` you need to create a new implementation by copy-pasting an action that’s already there (just by sure to use an unique name):

templates.PieMenu(
    name="My Custom Preset Picker",
    controller=controllers.PresetController(),
    instructions=[instructions.SetBrushOnNonPaintable()],
    deadzone_strategy=PieDeadzoneStrategy.PICK_PREVIOUS,
    values=Group("Erasers"),
    background_color=QColor(70, 70, 105, 190),
    active_color=QColor(110, 160, 235),
),

and then do the same in `actions.action` using the name you picked:

<Action name="My Custom Preset Picker">
<activationFlags>1</activationFlags>
<icon>config-popup-palette</icon>
</Action>
2 Likes

Thank you very much!

1 Like

Im not sure if you’re still maintaining the plugin, but there’s a really annoying thing that keeps happening to me. A big part of it is human error, but it would be nice not having to restart krita every time this happens.

Sometimes it is possible to spawn the preferences window on top of the pie menu, which makes it impossible to quit it without restarting krita. My suggestion would maybe be to add a button in the menu that would let you close it for emergencies like these.

Thank you so much for making this plugin btw, cannot go a day without it!!!

Hi, could you describe when the settings spawn above the pie? Is it at random, or it’s related to the pie menu being too far on the right, not leaving enough space for the settings?

If it’s only the latter - maybe the settings should just spawn on the right.

Also not sure which OS are you on, but for a temporary workaround linux environments usually have keyboard shortcuts for dragging the window by grabbing it anywhere. It’s usually Super+LMB
From what I checked online, Windows 11 also introduced that with Alt+LMB, as long as you ativate PowerToys (whatever those are)

1 Like

Yes, it is fully related to the pie menu spawning too close the edge of the screen.

I’m currently running Kubuntu.

OMG, THANKS, i didn’t know that was possible, even though it makes a lot of sense in the hindsight… That’ll save me so much time…

Thank you so much again!

That’s good it happens only in one situation.

Anyway this is a small omission from my side. The settings should spawn on the left when there is not enough space on the right, and it should probably always be below the pie, in case those two collide for some reason.

Not the most urgent fix, but I’ll create an issue to remember about it.

1 Like