GIMP Chat
http://gimpchat.com/

stroke path with pattern
http://gimpchat.com/viewtopic.php?f=8&t=19509
Page 1 of 2

Author:  iti [ Mon Jul 26, 2021 12:01 pm ]
Post subject:  stroke path with pattern

GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Basic Level



Attachment:
stroke.JPG
stroke.JPG [ 68.29 KiB | Viewed 5614 times ]
I have a pattern of narrow lace that i want to put around the edges of a selection. When i stroke pattern set to .5 inch it places it across the top, fine, but then it just duplicates it several times down the sides, it doesnt turn it to follow the path.

How do i get it to actually follow the path?

Author:  PixLab [ Mon Jul 26, 2021 1:24 pm ]
Post subject:  Re: stroke path with pattern

You can fill path with pattern, but You cannot stroke a path with a pattern!

Unless... you are using a plugin (which one is it?) or make that pattern as a brush.

To make that pattern a brush, right click on that pattern (in the pattern dockable dialog) > open as image > Ctrl+A > Ctrl+C > now it's a brush (clipboard)
Select paint brush tool > Go to your brush setting > select this brush(Clipboard), then > Dynamics > Track Direction

Now you can go back to the tab of your main project and > Edit > Stroke the path... > Select paint brush...

Play with the angle of the brush /Spacing / Fade options /Repeat options, ...

Author:  rich2005 [ Mon Jul 26, 2021 2:01 pm ]
Post subject:  Re: stroke path with pattern

It is possible but hardly worth the effort.

Make a gimp-image-hose (gih) brush. Greyscale, repeatable pattern, like this:

Attachment:
01-gih.jpg
01-gih.jpg [ 197.05 KiB | Viewed 5587 times ]


Stroke the path using paint tool and emulate dynamics on. Set the brush to suitable size, FG colour etc same as any other brush.

Attachment:
02-stroke.jpg
02-stroke.jpg [ 187.44 KiB | Viewed 5587 times ]


...but then what do you do with the corners ;)

I will attach that brush as an example:

Attachments:
border.gih [354.43 KiB]
Downloaded 116 times

Author:  iti [ Mon Jul 26, 2021 2:58 pm ]
Post subject:  Re: stroke path with pattern

rich2005 wrote:
It is possible but hardly worth the effort.

Make a gimp-image-hose (gih) brush. Greyscale, repeatable pattern, like this:

Attachment:
01-gih.jpg


Stroke the path using paint tool and emulate dynamics on. Set the brush to suitable size, FG colour etc same as any other brush.

Attachment:
02-stroke.jpg


...but then what do you do with the corners ;)

I will attach that brush as an example:



Ahh, so its just like in the old photo draw, the corners are odd, some of the bushes there did get the corners though. Thank you. :tyspin I tried it with copy and paint the one brush, and it was an ugly lace that way, so i did something else, but i will do as above to learn, i dont want your time wasted.

For the corners i can use just one copy and rotate it and tuck it in, although then have to blend the edges in, hmm, yes not worth it! yikes. ;)

Author:  iti [ Mon Jul 26, 2021 3:02 pm ]
Post subject:  Re: stroke path with pattern

PixLab wrote:
You can fill path with pattern, but You cannot stroke a path with a pattern!

Unless... you are using a plugin (which one is it?) or make that pattern as a brush.

To make that pattern a brush, right click on that pattern (in the pattern dockable dialog) > open as image > Ctrl+A > Ctrl+C > now it's a brush (clipboard)
Select paint brush tool > Go to your brush setting > select this brush(Clipboard), then > Dynamics > Track Direction

Now you can go back to the tab of your main project and > Edit > Stroke the path... > Select paint brush...

Play with the angle of the brush /Spacing / Fade options /Repeat options, ...


I see, thank you. Yes it is also a brush.

Author:  iti [ Mon Jul 26, 2021 3:17 pm ]
Post subject:  Re: stroke path with pattern

iti wrote:
PixLab wrote:
You can fill path with pattern, but You cannot stroke a path with a pattern!

Unless... you are using a plugin (which one is it?) or make that pattern as a brush.

To make that pattern a brush, right click on that pattern (in the pattern dockable dialog) > open as image > Ctrl+A > Ctrl+C > now it's a brush (clipboard)
Select paint brush tool > Go to your brush setting > select this brush(Clipboard), then > Dynamics > Track Direction

Now you can go back to the tab of your main project and > Edit > Stroke the path... > Select paint brush...

Play with the angle of the brush /Spacing / Fade options /Repeat options, ...


I see, thank you. Yes it is also a brush.


I cant find this: ' then > Dynamics > Track Direction'

Author:  teapot [ Mon Jul 26, 2021 3:36 pm ]
Post subject:  Re: stroke path with pattern

I don't think you are going to get a neat result with stroking as it's a wide brush so won't be nicely centred on the picture or have good corners.

If you don't mind doing it manually:
I had a play with tiling the pattern to make a long line of lace:
Filters -> Map -> Tile
Then duplicated it three times, moved it by hand into place rotating the sides:
Layer -> Transform -> Rotate 90 etc.
Finally cut the ends off at 45 degrees to tidy the corners.

Attachment:
ilacetest.jpg
ilacetest.jpg [ 121.1 KiB | Viewed 5555 times ]

Author:  gimper66 [ Mon Jul 26, 2021 3:38 pm ]
Post subject:  Re: stroke path with pattern

in the attachment an explanation how I line my path

Image

Attachments:
STROKE PAT.zip [648.2 KiB]
Downloaded 127 times

Author:  iti [ Mon Jul 26, 2021 5:33 pm ]
Post subject:  Re: stroke path with pattern

teapot wrote:
I don't think you are going to get a neat result with stroking as it's a wide brush so won't be nicely centred on the picture or have good corners.

If you don't mind doing it manually:
I had a play with tiling the pattern to make a long line of lace:
Filters -> Map -> Tile
Then duplicated it three times, moved it by hand into place rotating the sides:
Layer -> Transform -> Rotate 90 etc.
Finally cut the ends off at 45 degrees to tidy the corners.

Attachment:
ilacetest.jpg

:wow Thats amazing. I started to do that, not in that way as im too new, and i got frustrated with how ugly it was looking. Thank you!

Author:  iti [ Mon Jul 26, 2021 5:36 pm ]
Post subject:  Re: stroke path with pattern

gimper66 wrote:
in the attachment an explanation how I line my path

[ Image ]

Thank you i will study it!

Author:  ofnuts [ Mon Jul 26, 2021 7:39 pm ]
Post subject:  Re: stroke path with pattern

Also, ofn-brush-strokes-on-paths, that tweaks the spacing to have an exact integer count of strokes.

Author:  iti [ Mon Jul 26, 2021 8:09 pm ]
Post subject:  Re: stroke path with pattern

gimper66 wrote:
in the attachment an explanation how I line my path

[ Image ]


I tried this several times, and the first times i stroked with the bottom option, but it filled the image, i read your tut again and stroked with line, pattern. Nothing happens. I dont know what the heck im doing wrong, i will try tomorrow. Im stubborn and it will pick at me till i get it right. I did get it to go all the way around once, but it was just like before, it stacked them on top of each other on the sides. it didnt run them around.

I have been toying with just stroking a straight line and then bending it around the image, but that just more research to see if it would work after its been stroked. that sounds so funny.

Author:  PixLab [ Mon Jul 26, 2021 8:22 pm ]
Post subject:  Re: stroke path with pattern

iti wrote:
I cant find this: ' then > Dynamics > Track Direction'


It's in the tools option of the brush, but after reading teapot's solution, I think it's the neatest as you can have very neat corners.
anyway it's always good to know, dynamics :bigthup
Image

Author:  iti [ Mon Jul 26, 2021 8:28 pm ]
Post subject:  Re: stroke path with pattern

PixLab wrote:
iti wrote:
I cant find this: ' then > Dynamics > Track Direction'


It's in the tools option of the brush, but after reading teapot's solution, I think it's the neatest as you can have very neat corners.
anyway it's always good to know, dynamics :bigthup
[ Image ]


Yeah i saw that, mine says 'all off' I clicked on it thinking there must be a menu, but no menu. I clicked the pen to the right of it, and there are a bunch of empty boxes, i guess i can pick from. Non of them use that term, direction forward? so yeah

I clicked the icon i dont have track anything, I can type it in the blank, but that does nothing too.

Author:  teapot [ Mon Jul 26, 2021 8:43 pm ]
Post subject:  Re: stroke path with pattern

iti wrote:
Yeah i saw that, mine says 'all off' I clicked on it thinking there must be a menu, but no menu. I clicked the pen to the right of it, and there are a bunch of empty boxes, i guess i can pick from. Non of them use that term, direction forward? so yeah

I clicked the icon i dont have track anything, I can type it in the blank, but that does nothing too.

Have added a green arrow to PixLab's image to show where to click to get the menu.

Image

Author:  iti [ Mon Jul 26, 2021 8:51 pm ]
Post subject:  Re: stroke path with pattern

gimper66 wrote:
in the attachment an explanation how I line my path

[ Image ]


I tried again, i give up, it is still stacking them on the sides. Not sure how you got yours to go around. thanks for trying to help me.

Attachments:
Again.JPG
Again.JPG [ 84.83 KiB | Viewed 2601 times ]

Author:  iti [ Mon Jul 26, 2021 8:56 pm ]
Post subject:  Re: stroke path with pattern

teapot wrote:
iti wrote:
Yeah i saw that, mine says 'all off' I clicked on it thinking there must be a menu, but no menu. I clicked the pen to the right of it, and there are a bunch of empty boxes, i guess i can pick from. Non of them use that term, direction forward? so yeah

I clicked the icon i dont have track anything, I can type it in the blank, but that does nothing too.

Have added a green arrow to PixLab's image to show where to click to get the menu.

[ Image ]


yep i clicked there and i do not have that option. its alphabetical and its not in the list, thank you though =) those are nice arrows! mine are always crooked.

Attachments:
dont have it.JPG
dont have it.JPG [ 34.24 KiB | Viewed 2601 times ]

Author:  teapot [ Mon Jul 26, 2021 9:08 pm ]
Post subject:  Re: stroke path with pattern

iti wrote:
yep i clicked there and i do not have that option. its alphabetical and its not in the list, thank you though =)

Have you scrolled right to the bottom of the list? Track Direction should be there. The list has the writable ones first in alphabetical order and after those the non-writeable ones in alphabetical order. Track Direction comes with gimp and is non-writable. If Untitled is the bottom of your list then you've likely got loads missing as that one is usually writeable so usually comes before all the gimp preset ones :(

Author:  iti [ Mon Jul 26, 2021 9:24 pm ]
Post subject:  Re: stroke path with pattern

teapot wrote:
iti wrote:
yep i clicked there and i do not have that option. its alphabetical and its not in the list, thank you though =)

Have you scrolled right to the bottom of the list? Track Direction should be there. The list has the writable ones first in alphabetical order and after those the non-writeable ones in alphabetical order. Track Direction comes with gimp and is non-writable. If Untitled is the bottom of your list then you've likely got loads missing as that one is usually writeable so usually comes before all the gimp preset ones :(


yep that was the bottom of the list. I looked in the top and it wasnt there either, i checked in the load directory to make sure i have the ones that came with gimp checked and it is. I have two checked, one for the paint thing and the one that came with gimp. I can uncheck the one to see if there is more.

Author:  PixLab [ Mon Jul 26, 2021 10:30 pm ]
Post subject:  Re: stroke path with pattern

iti wrote:
those are nice arrows! mine are always crooked.

take a brush, make 1 dot, hold Shift key down, move it somewhere else and while holding the Shift key down make your second dot (continue with the arrow's tip) :bigthup

Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/