On 03/14/2014 04:44 AM, Joao S. O. Bueno wrote:
So Randhir,
It is true that the stored brush size is no longer automatically used.

However, GIMP has a feature that is somewhat "hidden" that can make
for it, and even give much  more flexibility than just the brush size.
  It will require one extra level of configuration, though:
GIMP 2.8 have the "tool presets" feature. You can find then in the
proper dockable dialog (windows->dockable dialogs->tool presets) -
besides storing suggestions for tool configurations shipped with GIMP,
these presets are a fast way to restore any tool, with all the
configured parameters, with a single click!

So, you have to do the following: select your desired brush,
pick your tool of choice (e.g. the Paintbrush) - type in your desired
size for that brush.
Since you are at it, you may optionally take your time to fine tune
all painting parameters you may like with this brush: smooth stroke,
an specific Painting dynamics, even a color.

When you are done, go to the "Tool presets" dialog, and press the
button for a new preset. (The button marked with  the same "New" icon
as is used in most other dialogs). You are then taken to the "tool
preset editor" dialog - it is an extremely simple dialog - because
when it is open, GIMP will already remember the tool you are using,
along with all the options you finetuned. All you have to do in this
dialog is to mark the "Apply stored brush" checkbox, in your case (or
don't if you want a preset that will change to a specific brush size,
no matter the selected brush). AH, of course, type in a suitable name
for the preset - like "plantbrush size 15". Click on the solitary
"save" button on the bottom of this dialog, and go back to the "tools
preset" dialog.

 From now on, one single click on the "plantbrush size 15" icon in this
dialog will instantly set your brush, size and other painting options,
and switch to the painting tool of choice.

So, this is what make for fixed size for brushes in GIMP 2.8 - but
there is still one further trick:
There are a lot of presets. And if you create one or more preset for
each brush you have, you will soon have a lot more! Now enter in the
"tags" feature - if you haven't discovered them yet - on the tool
preset dialog, (or any item dialog in GIMP, for that matter), you have
two text entries. The entry below the main dialog contents allow you
to set Tags for each item. For example, you might want to type in
"brush" in this entry (be sure to press <enter> after typing it). That
is it - now your preset is Tagged with the "brush" tag. Now, you just
have to type in "brush" in the other entry, above the dialog contents,
and those are instantly filtered, showing only the items with the
"brush" tag. Therefore, you could easily create 10-20 presets making
use of a single tag, and it would be manageable. If you need more than
that, you just add more tags to the mix :-)

This is awfully complicated for a very simple need: set the brush size to the size the brush was meant to be used with.

The funny thing is that it's already there: there is a call in the PDB for this: gimp_context_set_brush_default_size() (gimp-context-set-brush-default-size for the Scheme addicts), so it's a simple matter to make a trivial script around it and assign to a shortcut.

You can download it here; https://sourceforge.net/projects/gimp-tools/files/scripts/brush-size-to-native-0.0.py/download

Speaking of keyboard shortcuts, there is a "Set brush size to default value"/"tools-paint-brush-size-set-to-default" that looked like it would do the above, but as far as I can tell it only sets the brush to size saved in the Tool options.

gimp-user-list mailing list
List address:    gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list

Reply via email to