Also I am not sure why but in GIMP 2.10.6, the plug-in will open and run the one time when you start-up, if you run it again it won't pop-up with option menu (so I have to restart GIMP in order to run it again).
Because it's slow, I suggest you running on a very small sample image first to see what it does before you go ahead and apply it to your big image.
speedy version for GIMP 2.8 only. Run paint based on path to file, then run python3 calc.py then run paint based on paths from file... You'll have to change the path variable to point to a valid folder where your calc.py will reside.
verion 7. GIMP 2.10.6 Added random_angle option for painting blotches (when direction doesn't matter).
(8.17 KiB) Downloaded 109 times
Instructions:
1. Open an image that you'd like plug-in to paint of.
2. Draw paths that define the stroke directions. You must draw your multiple paths on one path/vector layer. Plug-in only reads from first active path/vectors.
3. Run Plug-in (Python-Fu/Paint Based on Paths, select brush, change brush-size, change brush-spacing, and choose offset angle (If your brush is horizontal when the brush angle is set to zero then you just use 0 as angle offset, otherwise for example if you brush is vertical when the brush angle is set to zero then you might want to offset angle of 90 so that the brush generally follows the direction of the paths you have defined). Click OK to run script.
4. That's it.
I have a loop that looks through all locations to draw based on spacing.
Then it mixes the order up randomly so you they don't get drawn in order like from left to right or whatever but randomly.
Then based on each draw location it grabs color of 4 pixels at that location and averages them and uses that as the brush stroke color.
Then it looks at all your defined paths, and finds the closest point to the draw location, finds out what angle the path is drawn and brushes a stroke of similar angle.
PS: I'd like to think of it as hybrid of human and computer art because I have to draw paths that tell it how to stroke so that's the human part, and it does the automation part of using colors and painting.
So it's not the code that is slow it's the GIMP version.
in GIMP 2.10.6 what usually takes 1 day or 2 to run I tried in GIMP 2.8 it takes about 1hr to run.
Not sure why that is but in GIMP 2.10.6 it goes away (the screen turns all black and white) between brush strokes while in GIMP 2.8 it's super fast.
On GIMP 2.8 I lowered the undo memory size and cache size down to like 2 Megabytes and It seems to stay speedy through out the whole process instead of starting out super fast and then slow down as it draws more.
I have been experimenting with your Van Gogh brushes for adding more texture to some abstract backgrounds and getting some quite pleasing results - will post in the near future.
Thought I would have another look at this one.
Frustrated by running only once (2.10.8 gimp.org) so removed the brush dialog and used context settings from brush toolbox instead. Works fine for me and can re-run without quitting - some promising results when pasting generated new image paint layers and playing with different layer modes. Will post when I have results worth sharing.