PDA

View Full Version : HOWTO: Dynamically resize Pencil, Eraser and Brush in The GIMP


MetalMusicAddict
December 18th, 2005, 02:29 PM
This is for the people who are used to this feature in Photoshop but everyone who uses The GIMP could find this usefull.

-This HOWTO involves using a wheelmouse. If you dont have one this still should help you to assign a keyboard action. Ill work on that and add it later.
So far Ive tried this on Windows, Ubuntu, a desktop and a laptop. All worked for me.


1. Create a new brush by going to File->Dialogs->Brushes.
2. Once the Brushes dialog box is there at the bottom, click on the New Brush option.
3. Give the brush a name. Dynamic is what I call mine.
Your settings should look something like the pic below to start.

http://img416.imageshack.us/img416/6903/untitled7qc.png
As you learn, change 'em as suited. :)


4. Open the File menu then go to Preferences.
5. Select Input Controllers.
6. Select tab Main Mouse Wheel.
7. Make sure the Enable this controller box is checked.
8. Assign a preferred Action to your mouse Event. You will find the actions under Context in the popup dialogue when you click on Edit to edit your Event.

ie: I have assigned the Scroll Up (Control) event to context-brush-radius-increase action. Respective, Scroll Down (Control) is assigned to context-brush-radius-decrease.
So now by holding the Control button and scrolling the mouse wheel Up or Down I can dynamically change the size of the brush. :)

Now you can resize on-the-fly your brush, pencil and eraser. Funny how the answer to alot of peoples post was built in. :)
The 1 thing Ive seen is that you will only see the brush resize if you hover over your image but the window is not focused.

Not the same as PS does it but still very nice. And remember, The GIMP isnt PS.

stuporglue
December 30th, 2005, 12:09 PM
Excelent.

I have a feeling this is going to increase my effeciency quite a bit when using GIMP.

Thank you!

MetalMusicAddict
December 30th, 2005, 12:23 PM
This was 1 of a couple things that have slowed my move to The GIMP. Glad it helps someone.

(I gotta upload the pic to the 1st post again)

M7S
December 30th, 2005, 02:19 PM
Is there any way to change the amount of increase or decrease per scroll? Right now the size goes up or down with 10 each time, which is way to much for my liking.

Thanks for the tip anyway,

M7S

MetalMusicAddict
December 30th, 2005, 02:28 PM
Change:
context-brush-radius-increase-skip to context-brush-radius-increase
and
context-brush-radius-decrease-skip to context-brush-radius-decrease

Im gonna edit the guide to show this. Its actually how I have mine.

magnusbb
December 30th, 2005, 03:40 PM
Thanks for this howto. I've really missed this!

M7S
December 30th, 2005, 07:32 PM
Change:
context-brush-radius-increase-skip to context-brush-radius-increase
and
context-brush-radius-decrease-skip to context-brush-radius-decrease

Im gonna edit the guide to show this. Its actually how I have mine.

Thanks

kperkins
December 31st, 2005, 12:00 PM
Great stuff--Thanks!

Pretzal
January 1st, 2006, 01:21 AM
nice tip! Could have used this the other day!

mztriz
January 1st, 2006, 03:27 PM
Thank you so much, this is every helpful.

PhilOSparta
January 7th, 2006, 09:48 PM
Nice work!

My wife and I have been using your new tool for over a week now.
It has more than doubled our productivity on a number of our routine tasks.

Thanks for your post.

Phil

PS - I see that there is a new book coming out on the GIMP soon.
http://www.ubuntuforums.org/showthread.php?t=110392

Tab
January 9th, 2006, 05:13 AM
What I want to know is why the hell some kind of feature like this isn't already in by default. :|

simplyw00x
January 9th, 2006, 01:27 PM
Very good tutorial; simple, quick and startlingly effective. Thanks a lot.

MetalMusicAddict
January 9th, 2006, 01:42 PM
What I want to know is why the hell some kind of feature like this isn't already in by default. :|
I also wonder. I look into talking to the devs to see what they say.

allelopath
April 10th, 2006, 06:20 PM
This is great. Thanks for posting this. I am a Suse person, but a link to this was posted on Gimp-user@lists.XCF.Berkeley.EDU

graigsmith
April 10th, 2006, 06:44 PM
this is an awesome tip! thank you :)

figured out how to do it on any key you want. just go to interface and keyboard shortcuts.

there are alot of cool functions in there ;)

enopepsoo
April 14th, 2006, 01:25 AM
:D
My girlfriend is a photographer. When I tried to switch her computer slowly to open source she complained about resizing brushes in the GIMP.
problem solved. Nice work metalmusicaddict, and your government is violent!

MacSlow
May 19th, 2006, 03:41 AM
I want to add a tiny but helpful hint to this great tip. Make sure to also configure:


Wheel-Up (Shift): context-brush-hardness-increase
Wheel-Down (Shift): context-brush-hardness-decrease


Thus my dynamic brush manipulation shortcuts look like:


Wheel-Up (Shift): context-brush-hardness-increase
Wheel-Down (Shift): context-brush-hardness-decrease
Wheel-Up (Ctrl): context-brush-radius-increase
Wheel-Down (Ctrl): context-brush-radius-decrease


This makes several painting actions very fast and efficient imo. While I'm by far no professional gimp-user (or photoshop for that matter), actually I use gimp only now and then, I greatly welcome this time-saving feature a lot.

Best regards...

MacSlow

Ubuntuud
June 2nd, 2006, 12:15 PM
When I press Ctrl the color picker shows itself, so that I can't see how big the brush is while resizing. Is there a way to turn this off?

And is there a way to make the "dynamic" brush the standard brush?

MetalMusicAddict
June 2nd, 2006, 10:17 PM
When I press Ctrl the color picker shows itself, so that I can't see how big the brush is while resizing. Is there a way to turn this off?
From 1st post.
The 1 thing Ive seen is that you will only see the brush resize if you hover over your image but the window is not focused.
And is there a way to make the "dynamic" brush the standard brush?It should stay your brush as long as you dont pick another.

Ubuntuud
June 3rd, 2006, 07:15 AM
From 1st post.

It should stay your brush as long as you dont pick another.

I have "focus follow mouse" turned on, so I guess I'll have to live with it.

And with standard I meant on startup, but I found out already. There is an option called "save tool preferences" (or something similar).

mustang
September 7th, 2006, 03:29 PM
Great tip! Thanks!

kosmic
September 8th, 2006, 09:14 AM
Excelent Tip, Thank you.

matysjan
October 8th, 2006, 07:22 AM
When I press Ctrl the color picker shows itself, so that I can't see how big the brush is while resizing. Is there a way to turn this off?

And is there a way to make the "dynamic" brush the standard brush?

So it is simple - when color picker shows it self, U can NOT see how You brush grows or shrink but ... the way to solve this is to click on gimp window (somewhere in empty space) and return the mouse on the picture area (BUT NOT CLICK) - now U can see the brush silhouette and press CTRL and scroll mouse button to resize it! Simple and effective - so when U need to resize and see it try this procedure

Jack

MetalMusicAddict
December 12th, 2006, 10:35 PM
Killer! This guide got translated into Chinese. :) http://my.opera.com/symbol/blog/show.dml/459828

BLTicklemonster
December 26th, 2006, 09:22 AM
!!! Finally, I can get past a radius of 19. (too lazy to figure it out in the first place)

Thanks, dude!!!

SuperMike
January 29th, 2007, 07:45 PM
Is there a way that I can use Gimp and when I open it up it doesn't have pen, eraser, pencil, and brush sizes set to a huge size? How about 1 pixel x 1 pixel? That would be more suitable to me.

BLTicklemonster
January 29th, 2007, 08:01 PM
Seeing's how I would want to use this quite a bit, and how gimp defaults to Circle (11), why can't I name it Circle (11 dynamic) so it will be a scroll away?

MetalMusicAddict
January 29th, 2007, 08:07 PM
Seeing's how I would want to use this quite a bit, and how gimp defaults to Circle (11), why can't I name it Circle (11 dynamic) so it will be a scroll away?

I think I'm missing what your trying to do. You can name the "dynamic" brush you create whatever you want. :)

Are you trying to do something beyond naming?

BLTicklemonster
January 29th, 2007, 08:56 PM
Nah, just trying to keep it close at hand. Right now when I open gimp, it's at circle 11, if I had it named circle 11 dynamic, I guess I'd still have to scroll past the largest circle setting anyway, so it's a non starter from the git go. never mind. lol

MetalMusicAddict
January 29th, 2007, 09:09 PM
Nah, just trying to keep it close at hand. Right now when I open gimp, it's at circle 11, if I had it named circle 11 dynamic, I guess I'd still have to scroll past the largest circle setting anyway, so it's a non starter from the git go. never mind. lol

OOhhh... I see.

Google is our friend. While it didnt give me the direct answer it gave me a clue. ;)

In a Terminal:
sudo gedit /etc/gimp/2.0/gimprc

Find:

# Specify a default brush. The brush is searched for in the specified brush
# path. This is a string value.
#
# (default-brush "Circle (11)")
Change to:

# Specify a default brush. The brush is searched for in the specified brush
# path. This is a string value.
#
(default-brush "Dynamic")

That works! Who loves ya. ;)

BLTicklemonster
January 30th, 2007, 10:25 AM
Thank you very much, Cory!

I'm on a windows machine right now, and set it up and it's fine.

The gimprc file is located in your documents and settings\yourname\gimp-version number

open in notepad (I guess) and here's what I have mine like:

# GIMP gimprc
#
# This is your personal gimprc file. Any variable defined in this file takes
# precedence over the value defined in the system-wide gimprc: C:\Program
# Files\GIMP-2.0\etc\gimp\2.0\gimprc
# Most values can be set within The GIMP by changing some options in the
# Preferences dialog.
(monitor-xresolution 96.000000)
(monitor-yresolution 96.000000)
(show-tips no)
#Specify a default brush. The brush is searched for in the specified brush
# path. This is a string value.
#
#
(default-brush "Dynamic")
# end of gimprc



Thanks again!!!!

stalefries
January 31st, 2007, 08:43 PM
Good news folks, the developer versions of the Gimp have scalable brushes now! gimp.org

BLTicklemonster
January 31st, 2007, 09:34 PM
Aha! So the DO browse this forum! Stealers!


:)

Great news, though.

MetalMusicAddict
January 31st, 2007, 11:24 PM
Ha! Killer. I guess Ill clean this up a little and freeze the guide. Maybe Ill dive into the things the gimprc file can do with a new thread. ;)

sparkguitar05
June 5th, 2008, 12:31 AM
Is there a way to use the [bracket] keys to increase and decrease brush sizes? I'm so used to this in Photoshop and I'm having a really hard time switching over to GIMP.