This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Bind a brush to a keyboard key?

Tags: None
(comma "," separated)
fangguang
Registered Member
Posts
10
Karma
0

Bind a brush to a keyboard key?

Tue Mar 06, 2018 10:42 pm
Hello! Could someone please help me, I have two questions.

The first question:
Is it possible to bind a particular brush
with particular settings (including color)
to a particular keyboard key?

Let's say I want to press "b" key
and get the "bristle_frottis" brush
with (0,0,0) rgb color?

The second question:
is it possible to set some kind of randomization for color?
I mean, to set not a particular color for a brush,
but some color range instead,
so Krita will pick a random color of that range for each new brush stroke?
User avatar
scottpetrovic
Registered Member
Posts
520
Karma
4
OS
First question:
With Krita 4.0, there is a python script so you can assign specific key combinations to specific brushes. It does not keep a specific color, but you might be able to change the script to do something like that. The name of the script is called "10 brushes"

Second Question:
You can get close to color randomization that you want, but not exactly. You can add a color range to your brushes. For many of the brush engines, there is a Color setting where you can specify the color range that your brush can have. The color range is centered though around what your current foreground color is at. If you play around the brush editor you can see what the available options are
fangguang
Registered Member
Posts
10
Karma
0

Re: Bind a brush to a keyboard key?

Tue Mar 06, 2018 11:01 pm
Thank you scottpetrovic!
User avatar
artur89sd
Registered Member
Posts
121
Karma
1
OS

Re: Bind a brush to a keyboard key?

Tue Mar 06, 2018 11:14 pm
1. You can bind a particular brush (oe up to ten) to a keystroke through the python plugin "Ten Brushes" (only present in the 4.0 branch, i think)
carrying the color along with the brush would need some modification to the plugin.

2.Only possible with the "Pixel" engine.
Go to Brush Settings > Color
Mark the checkboxes Hue and/or Saturation and/or Value
Use the "Fuzzy Stroke" curve to control the Hue/Saturation/Value limits.
fangguang
Registered Member
Posts
10
Karma
0

Re: Bind a brush to a keyboard key?

Sat Mar 10, 2018 4:22 am
artur89sd, thanks a lot!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]