Different pens for different brushes in Krita

I found a review of someone giving the demonstration, he was able to use one pen as one brush, and another pen for a different brush. I tested and it can work in Krita 4.1.1, but for the latest verison, it does not work at all. Our driver can recognize the different pens, but have no idea how to make it wrok in Krita 4.4.

He demonstrates this at minute 3:10

1 Like

Thanks for that link/vid…

Hello and welcome to the forum :slight_smile:

I’m surprised that there’s a difference between 4.1.1 and 4.4.5 in this situation.
As far as I know, krita only recognises a ‘stylus tip’ and an ‘eraser tip’ which is actually treated as a second/alternate brush and can be used as such to use any brush preset you want to.

Are you alternating between 4.4.1 and 4.4.5 by using a portable .zip for 4.4.5?

In Settings → Configure Krita → Tablet settings → Open Tablet Tester, you can draw on the grid and note what is detected in the event record on the right side.
Just bringing the tip close to the tablet surface will tell you what it is recognised as.
Can you do that for each end of each pen for 4.4.1 then again for each end of each pen for 4.4.5 and see if there is a difference?

Maybe @dkazakov remembers, but that may have been disabled on purpose, I dimly remember some issues with tablet drivers changing stylus tip IDs randomly for no reason (bug presumably), which then broke painting.

Hi, @Lynx3d and @Doucat!

We have never disabled this feature explicitly. It should work fine. There might be some problems with that. I would recommend to check two things:

  1. Check if switching to WinTab and restarting Krita fixes the issue.
  2. Activate Tablet Logging (and run DebugView in advance) with Ctrl+Shift+T and check what in the value of ‘uniqueId’ field of both styluses.

Swapping brush with stylus. Omg that is so funny. Like arts supplies for various materials. Imagine having to buy a stylus to use a given brush :money_mouth_face:

I don’t think I liked the slimmer pen though.

@Lynx3d @dkazakov

Tks a lot! I tested again with DebugView, the pen id was changed when I was using different pens. But in 4.1.x, the brush would switch automaticly when i was using different pens. In 4.2 or higher, it would not work at all.

You might need to assign different brush once for it to associate to it.

Hi to all!
Just checked in to confirm that in version 4.1 (appimage from attic) you don’t have to do anything in order for it to work. Just change pens and pick another preset! Already in 4.2 it doesn’t work anymore. Shame…
Qt regression? Krita code change?

This is interesting - as an owner of multiple pen and I recently got felt tips. I might try with huion [if its possible in that brand] . I wonder if we can make this faster to do or make it like how it was observe by other in 4.1

Should we report the issue? The feature could come really handy for all of us with multiple styluses… Maybe there is a report somewhere already. I haven’t checked that.

Hi

If it was working in 4.1 and not working anymore in 4.2, you have to report an issue if you want to have a chance to get it fixed.
In krita-artists we can discuss about bugs & improvement, but usually nothing is made until a formal bug is created on bugs.kde.org because it’s not really possible to track things properly on KA

Grum999

I made it formal! Now we have a reminder of the regression: 447006 – Regression: Different presets for different pens

1 Like

I’m sorry, but this was intentional. There were problems where tablets would report random stylus ids – a driver issue we couldn’t work around.

Was this an issue with specific devices, or just all over? I’m wondering if it would be possible to whitelist known good tablets for this feature.

The bug report was from @Deevad – so it must’ve been with Wacom tablets. I’m not sure whether other tablets even supported different stylus id’s.

Yes, I remember this bug.

Don’t get me wrong: I’m not against the multiple id per stylus, it is a good idea!

But unfortunately the detection of the right ID wasn’t working well and it was very annoying. It took me weeks to investigate with a special Krita with debug options (and screencapture all) to send @halla reason about why my preset would jump suddently to another one in the middle of a drawing. And you can easily imagine the frustration of getting your preset auto-switching between two paint strokes, randomly, or after selecting a layer or hovering a menu. I tested it and could trigger the bug at the time on Wacom Cintiq13HD and Intuos4XL. The ID was switching in background for no reasons. It was unpredictable and unfortunately, something probably deep in how Qt handle devices.

That’s why the fix had to sacrifice that switch of device in favor of consistency of drawing/painting.

1 Like