Gimp-Forum.net
How to get paint tool to stop at selection borders - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: How to get paint tool to stop at selection borders (/Thread-How-to-get-paint-tool-to-stop-at-selection-borders)



How to get paint tool to stop at selection borders - gib65 - 01-05-2018

Hello,

Please have a look at the following screen shot:

[img]http://www.shahspace.com/before painting elvis's tail.png[/img]


I prepared the selection so that I could click the paint tool between the two wavy lines and have it fill only between those lines.

But this is what happened:

[img]http://www.shahspace.com/after painting elvis's tail.png[/img]

Not only did it paint between the lines, but outside as well.

I was expecting the paint tool to propagate from the point where I clicked until it hit borders, those borders being both the lines I drew an the borders of the selection. It seem it did stop painting beyond the selection border, but then continued propagating until it got to the region outside the lines inside the selection, and then started painting again.

How do I configure the paint to stop propagating once it hits selection borders as well as lines drawn in the layer?

Thanks.


RE: How to get paint tool to stop at selection borders - Blighty - 01-05-2018

The selection is the "marching ants" (moving dotted line). When you fill the selection that is what gets filled (as seen in your second screen shot).

If you want to fill just between the two wavy lines then your selection must coincide with the wavy lines.

Try this:
Select the Fuzzy Select Tool
Click between the two wavy lines
If it is not what you want then Undo Ctrl-Z, adjust the Threshold, and try again.
The selection will probably end up 1 pixel short of where you want it. Do Select > Grow by 1.
The selection should now be on top of the wavy lines.
Now bucket fill

Note:
The select tools have 4 modes in the Tool Options:
Replace, Add, Subtract, Intersect.
Use these to adjust your selection if necessary.


RE: How to get paint tool to stop at selection borders - Ofnuts - 01-05-2018

(01-05-2018, 09:10 PM)Blighty Wrote: The selection is the "marching ants" (moving dotted line).

More accurately, the "marching ants" show where the selection is at least 50%. If you have a "feathered" selection, pixels that are less than half-selected are outside the marching ants lines.


RE: How to get paint tool to stop at selection borders - Espermaschine - 01-06-2018

Colourising line art also works very well with G'MIC - Black & white - Colourize lineart [propagation]

[attachment=1245]


RE: How to get paint tool to stop at selection borders - rich2005 - 01-06-2018

Is it something like this:

[Image: cY6E0im.jpg]

One way:

1. Use the fuzzy select tool to select inside the closed area. https://i.imgur.com/1apEsST.jpg

If you used that selection it leaves a nasty border, so increase the selection by a pixel or two. Select -> Grow

2. Use the quick mask. The little icon bottom left toggles on and off. Painting in black subtracts from the selection (white adds to the selection) https://i.imgur.com/FsEekAU.jpg

3. With a suitable size brush, paint in the gap between the tail and the body. https://i.imgur.com/752pPbi.jpg

4. Toggle the quick mask off. You now have your selection.
Use a new layer underneath That will keep the black outline crisp. Fill the selection. https://i.imgur.com/wNddqUv.jpg