question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Brush size keybinding

See original GitHub issue

🚀 Feature

Keybinding to change label paint brush size.

Motivation

During labeling, I usually completely label each object (cell, cell colony, etc) before moving to another. To do so I label the coarse structure of the object first, using little zoom (“overview mode”). Then, I zoom in to label the finer details of the object (rim areas, branches, string-like features), before I switch to the next object. This involves quite a bit of paint brush size changing. Changing the size in the layer controls is inconvenient, as I have to move the cursor out of the image to be labeled, change the size, move back to the image to check if the new size is correct, (optionally move back to the layer controls to re-adjust), and then continue labeling. This disrupts the workflow.

Pitch

I suggest a simple key binding (e.g. q and e to have them close to the 1-5 mode switches) to adjust the brush size.

Alternatives

Alternatively, one could change the brush size using the mouse wheel (not used at the moment as far as I know).

Additional context

This is my first request. I searched the issue list for potential duplicates of this request, but didn’t find any, so I hope this request makes sense. There already is a menu Preferences -> Shortcuts -> Group: Labels layer to adjust keybinding, so I think it should be quite easy to add an option for brush size adjustment.

If anybody has pointers towards where this behavior is controlled, we (MBPhys and me) are happy to implement this ourselves and merge it if you’ll allow it.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
RobAnKocommented, Sep 6, 2022

It is life changing indeed! Let’s keep your PR open, as it already describes the issue perfectly and presents a minimum working solution for people to experience the pure bliss of auto-repeating brush size key bindings ❤️ I’ll quote my above-mentioned idea for a general solution of press-and-hold keybindings in the PR so that the information is found in one place.

1reaction
psobolewskiPhDcommented, Sep 5, 2022

This scroll wheel binding from @ianhi is pretty sweet too: https://github.com/napari/napari/issues/4837#issuecomment-1189342980 https://github.com/Hekstra-Lab/napari-labeller/blob/74913dce72c773df2ec94e1cb3798dd40fedf219/src/napari_labeller/_keybinds.py#L59-L66

Though personally I might prefer the scroll wheel just did zoom independent of PAN on the Labels layer…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Change The Brush Size In Photoshop (With Shortcuts!)
The easiest way to change the brush size in Photoshop is to use the [ or ] keys on your keyboard. The left...
Read more >
20 Brush and Painting Tool Shortcuts in Photoshop
On Windows: Control + Alt + Right click -drag left/right to decrease/ increase brush size and up/down decrease/ increase brush hardness. • To ......
Read more >
Photoshop Workflows And Shortcuts For Digital Artists
3. How To Increase And Decrease The Brush Size #. In order to increase or decrease the size of your brush, you need...
Read more >
Common Brush controls and shortcut keys - Unity - Manual
There are arrows next to the Brush Strength, Brush Size, and Brush Rotation sliders. Click on an arrow to display more options that...
Read more >
Keyboard Shortcut Guide for Artists | Art Rocket
Increase brush size. ] key. Decrease brush size. [ key. Picking up color with the [Eyedropper] tool. Windows : Alt + Click the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found