Feature request for dedicated Eraser Tool

Again all these points about should it exist or not, should we copy or not is already discussed, please read the thread again. If we keep on going like this this thread will just be circular loop of arguments which won’t make any difference for the original feature request.

The feature request is made let us leave the decision to implement it or copy it to the devs for now.

7 Likes

Does this plugin function any differently from the two native actions implemented for 5.3?

1 Like

I have no idea.

I did not even test 5.2 that much nor other plugins that swap the eraser. I just got tired of this being a recurring issue and made a plugin yesterday night to do it.

To my testing it seems light and to be working. But I was half a sleep so I might have missed something with a odd combination sequence. Or swapping views or screens.

But this for me is solved multiple times and now once again.

3 Likes

I found a similar set up that closely matches the CSP workflow but with one catch.

I used the ten-brushes plugin and set an eraser brush and gave it the shortcut E (it’s better to set a versatile eraser that changes hardness with pressure since you can’t hot swap the eraser brush and you need something that works for most situations).

Then I used Shortcut composer and under “Temporary Tools” I set the “Temporary eraser” shortcut to C. This works like the usual Eraser-mode with the added benefit that you can press and hold C to erase then release to switch back to the brush (like CSP).

But the catch is that it only works for brushes. If you’re using the fill tool for example and press C, it’ll switch you to the brush tool automatically. So you need a third shortcut for the native Krita eraser-mode (I set mine to alt+C).
If future versions of Shortcut composer became compatible with the other tools, that’d be a perfect set up for me.

1 Like

Could you elaborate, what kind if behavior do you expect?

Your want the plugin to remember the tool selected before entering the eraser mode, or you’d just want to toggle eraser mode without switching the tool?

6 posts were merged into an existing topic: Convergent Evolution

I don’t recall if this idea has been said before: : what if Eraser Mode could be made to remember the brush size and opacity that was last used?

Like: pen brush used for drawing thin lines then Eraser Mode is invoked and the size is made larger and opacity made solid for use in that mode… Then user goes back to drawing mode and the size and opacity that was used for drawing/painting is remembered and used. :person_shrugging:

Still not a dedicated eraser tool but comes close to it.

1 Like

Take a look at the bottom left of the brush editor - is that what you mean?

1 Like

When I last tried it I set “Temporary Tools > Temporary eraser” to C. But when I try to use the bucket fill tool and press C, it switches me to the brush tool. That can be considered unexpected behavior.
So yes, I basically want to toggle eraser mode without switching the tool. I think that’s more inline with what the user would expect.
Right now the plugin eraser shortcut can’t fully replace the built in eraser, hence why I set up two shortcuts.

(Honestly, it would be better if Krita supported sticky shortcuts natively like it’s already the case with the line tool, but maybe that’s off-topic for this thread.)

1 Like

@dreamkeeper Ah, just found it. Most of the time that part is covered by the navigation bar on my tablet, so I ended up not seeing it.
So, if that’s checked off, then the eraser mode will remember the size I set it? Never thought about it. – Just tried it and it works very nicely! :+1: I’m happy!

  1. Go to Settings > Manage Resources > Open Resource Folder > pykrita > shortcut_composer
  2. Open actions.py with any app for editing text
  3. Search (ctrl+F) for Temporary eraser
  4. Remove the SetBrushOnNonPaintable() line and save the file:
     templates.TemporaryKey(
         name="Temporary eraser",
         controller=controllers.ToggleController(Toggle.ERASER),
         high_value=True,
         instructions=[
    -        instructions.SetBrushOnNonPaintable(),
             instructions.EnsureOff(Toggle.PRESERVE_ALPHA),
         ],
     ),
    
  5. Restart krita
3 Likes

Nice! I need to test it more to see if there are any quirks, but so far it works as expected.
Thanks for the tip, and for this awesome plugin.

2 Likes

Well to me this feature has a big caviat but this is literally only my guess. A eraser tool will simply change how the brush system acctually works at its core and it would change too many things dependant on it currently.

I think the workarounds and plugins are probably the only solution that will exist for this problem.

Also I have noticed that the people actually wanting this because they come from PS are not that many like 3 or so. Most people that tried my ps eraser plugin were krita users only 1 ps user and because of it I only got krita perspective suggestions. So I donno about all this this would not even be plugin or feature for Photoshop users even.

If this is you guys only accept official support it really is just wanting free Photoshop out of the box.

Probably last time I will make a plugin to help someone too, calling it a “work around” when it is doing exactly what is requested. As if something disgusting and would never dare to touch.

Honestly no patience for this and probably after this eraser thing it will be something else to be like PS and then it will be another thing and then another and so on. I have been watching the requests and after I made the plugin there was instantly another feature of the same tone of “because Photoshop”. This will not end until the whole list of differences has gone through. Calling it convergence evolution is the most funny thing ever to simply motivate others to copy in your stead.

Everyone is free to do what they want yes but this really not a problem either for anyone but people that can’t adapt ever and are stuck in the past and this will change nothing for krita or it’s community either by implementing them. A minority that does not want help. is what it is.

I need to make something for krita users only. if I ever hear a complaint about my plugins because another software has it some way I will probably ignore it too from now on. Honestly I start to understand this feature request problem krita has because I have had a good couple encounters like this myself but I thought nothing of it beyond bad taste. It really is a sort of campaign and not of good ideas.

I actually make suggestions after problem solving and no one cares until I implement them myself and then people understand what it does and solves and become interested… but to copy the eraser everyone talks about it non stop when they don’t even want it wow.

5 Likes

Of note, the Eraser Shift plugin is already a very capable plugin. I think that if @EyeOdin manages to add toolswitching functionality (from the current active tool to the brush tool for both the eraser and brush mode) there really isn’t much more that this feature request could bring over his amazing plugin, other than a tool button in the tools perhaps.

The toolswitching to a brush tool is also what I miss from the threeslots addon, if I recall correctly. I’m mostly using canvas input settings to adapt to not switching tools :wink:

I think the biggest problem is that when krita switches tools, it doesn’t change the brush. For example, if you switch the tool from a brush to a straight line tool, it will still be the same brush.

This leads to a problem. Let’s assume that the “eraser tool” is a brush tool that locks the “eraser mode”. After switching tool, since the brush does not change, it is no different from opening the “eraser mode”…

I have come up with two methods. The first one is similar to CSP, which requires packaging resources such as tools, brushes, and textures into new resources called “presets”. Then we can set shortcuts for each “preset” and combine them into “group”, and set shortcuts for “group”. The eraser tool in CSP is actually a “group” that places a bunch of rubber brushes.This is undoubtedly a huge change that may require significant rewriting of the resource structure. But it should be worth it, as I mentioned before, resources such as gradients are not embedded in the brush, which is not conducive to sharing resources.

The second one is relatively simple. We can set each tool to remember the brush it uses. When I use the A brush in the brush tool and the B brush in the line tool, the brush and line remember A and B respectively, so there is no problem switching between them. In this case, we can add an “eraser tool”.To be compatible with previous habits, it is also necessary to set a shortcut key that only switches tools without changing the current brush.

3 Likes

that was the very first version I made but as I was brought to attention there are more brush tools that you can use (about 10) and this ensures you can use with any of them. it was scraped.

The other options are possible and not possible still.

Way to send a feature request off the track, people :clap:

Perhaps it is time for the developers or the community managers to step in, offer a sort of an official resolution and close the topic? I doubt people are gonna be reading through two years worth of arguments. I know I won’t.

3 Likes

Now in Krita 5.2.2, there are Ten Brushes and Toggle Eraser Preset, but maybe because they are not individual tools, they may also cause conflicts during switching.

For example, I set the Brush Tool to the B key, the Toggle Eraser Preset to the E key, and one of the Ten Brushes to the Q as a quick brush. If I press the following keys in sequence, I get a bug:
Press EQEQ, the Eraser Preset on the E will be lost and become the same brush as the Q.
Press QEQE, the Brush on the A will be lost and become the Q brush.

Not only programs, but also humans are prone to mistakes in this confusing switching logic.
Switching between tools is a matter of which one to press. What you press is what you get.
But switching(or call it toggle) between brushes is a different kind of thinking:
If you want to switch back to Brush Tool from Eraser Mode , the target is the Brush Tool, but the keystroke is Eraser Mode again.
If you want to switch back to Ten Brushesfrom another Tool, the target is Ten Brushes, but the keystroke is Brush Tool.
The two sets of switching logic often get into conflict, which is very unintuitive.

Since Krita is mainly about painting, I strongly think it is very necessary to improve the level of these Toggles under the Brush Tool. It would be great if Eraser and other quick brushes(maybe by tag groups?) could be set up as individual Tools!!!

P.S. The Eraser Preset is useful, so is the Eraser Mode. The former is handy in the sketching stage, and the latter is in the rendering stage.
It’s great to have a dedicated Eraser Tool, but maybe it’s a waste of keys to have a dedicated Eraser Mode tool. Since Eraser Mode is the erase blending mode of the brush, it could be seen as a modification of the brush, and integrated into the brush shortcut key. Then, a long press to activate the Eraser Mode temporarily, and release to return to the brush, this would be so convenient and save a key.

1 Like

I am so sorry to post here… I read this thread and was shocked, how this discussion derailed and I feel sorry for the requester and the developers…

As I read this thread I wondered, as to why this thread was openend in the first place. Krita has a working brush-engine and each brush can be turned into an eraser…

But than I understood the userstory:

I, as an user want to have an option to switch between 2 brushes via a shortcut. ( eg. bush / eraser) Both brushes should have their independent settings, so that I can use both brushes, without always changing the settings…

I read further… and further… until I reached the end. And the whole time I searched for a simple solution… But there was none! Either use a plugin or a plugin.

One user suggested: “just use the other side of your stylus” …

And yes, that is the solution! Krita can detect wether you use the tip or the back of your stylus and according to which side is selected, you have 2 brushes. So here is my suggestion for this request:

  1. Add a shortcut-option for the user to configure
    1.1 or/and make it a toolbar-action (for tablet user)
  2. simulate a rotation of the stylus when used

I think it is the perfect solution:

  • You don’t have to add new functionallity and can reuse all the (tested) code you currently have.
    • (important for the developers)
  • It should be easy and fast to implement
    • (important for the developers)
  • The brushes and its settings are seperated.
  • The used brushes are saved.
  • Styli without erasers on the back can use this functionallity.
    • workflow improvement
  • You can switch between the brushes without problem.
  • Krita-foreign Artists can be easier onboarded.

If you think this should be a new feature request, just say so. I got this idea while reading this thread.

2 Likes

If your stylus offers this option, not all do.

Michelist

1 Like