It is currently 24 Feb 2018, 04:15

GIMP Python Fu ScriptsFollow Path With Perspective Brush Script for GIMP (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/16
Posts: 2191
Joined: 26 Sep 2016, 00:16
Cash on hand: 8,236.90 GLP
Bank: 53,924.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1218
x 264
Contact:
Canada

Follow Path With Perspective Brush Script for GIMP

Post#1 by tim » 02 Nov 2016, 18:31


This script was requested by Rod to base brush size on Y-coordinate.

:download:
Follow_Path_With_Perspective_Brush.zip #
zipped .py file (unzip, put in your GIMP's /plug-ins/ folder)
(1.62 KiB) Downloaded 55 times
:download:
Follow_Path_With_Perspective_Brush (2).zip #
version 2 - Fixed Track Direction bug. Now It follows angle properly.
(1.78 KiB) Downloaded 46 times
:download:
Follow_Path_With_Perspective_Brush (3).zip #
version 3 - Added forgotten progress update for friendliness.
(1.82 KiB) Downloaded 50 times
:download:
Follow_Path_With_Perspective_Brush (4).zip #
version 4 - Draw smaller brushes (further away) first because smaller brushes shown in front would look weird.
(2.05 KiB) Downloaded 54 times
:download:
Follow_Path_With_Perspective_Brush (5).zip #
version 5 - Dang it, forgot progress bar again. Just adding it for friendliness.
(2.09 KiB) Downloaded 130 times

Menu location: Python-Fu -> Follow Path With Perspective Brush

Script options:
- Minimum Brush size percentage (y=0) (default 50). The percentage of brush size when y is at zero (0) (at top of image).
- Maximum Brush size percentage (y=height of image) (default 100). The percentage of brush size to use when y is at height of image (at bottom of image).
- On Path Spacing (percentage of brush size). The spacing percentage used based on current brush size while moving along the path.
- Track Direction? (YES/NO). If YES, will set brush angle according to slope of path as it brushes along the path.

Instructions:
You must have an active path/vectors for this script to have an effect.
Run script, and it'll use your active brush settings to Follow the Path/Vectors based on Script options.
Attachments
Follow_Path_With_Perspective_Brush_01_sample.jpg
Follow_Path_With_Perspective_Brush_01_sample.jpg # (122.42 KiB) Viewed 2278 times (Watermarked | Thumbnail)
Follow_Path_With_Perspective_Brush_02_sample.jpg
Follow_Path_With_Perspective_Brush_02_sample.jpg # (134.3 KiB) Viewed 2278 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/16
Posts: 2191
Joined: 26 Sep 2016, 00:16
Cash on hand: 8,236.90 GLP
Bank: 53,924.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1218
x 264
Contact:
Canada

Post#2 by tim » 02 Nov 2016, 19:01


version 2 - fixed a Track direction (angle) related bug.
Attachments
Follow_Path_With_Perspective_Brush_03_sample.jpg
Follow_Path_With_Perspective_Brush_03_sample.jpg # (134.29 KiB) Viewed 2275 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/16
Posts: 2191
Joined: 26 Sep 2016, 00:16
Cash on hand: 8,236.90 GLP
Bank: 53,924.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1218
x 264
Contact:
Canada

Post#3 by tim » 02 Nov 2016, 20:40


version 3 is up.
Added forgotten progress bar updates for friendliness.
Attachments
Rows_of_trees.jpg
Rows_of_trees.jpg # (280.98 KiB) Viewed 2266 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 5/16
Posts: 2244
Joined: 28 Sep 2016, 03:35
Cash on hand: 13,375.16 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 8
x 471
United States of America

Post#4 by Pat625 » 02 Nov 2016, 20:52


:gimp_clap:
Perspective Path Brush.jpg
Perspective Path Brush.jpg # (688.83 KiB) Viewed 2263 times (Watermarked | Thumbnail)
Just had to play with the old green pepper again. This was just beginner practice. I like this filter!
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/16
Posts: 2191
Joined: 26 Sep 2016, 00:16
Cash on hand: 8,236.90 GLP
Bank: 53,924.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1218
x 264
Contact:
Canada

Post#5 by tim » 02 Nov 2016, 21:21


Pat, your post just made me think of a bug in my script.

I just updated with version 4.
Always draw smaller brushes first (as smaller brush means further away and should be in the background otherwise it would look weird).
0 x



aka Tin
Image gimplearn.net                                              

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/16
Posts: 2191
Joined: 26 Sep 2016, 00:16
Cash on hand: 8,236.90 GLP
Bank: 53,924.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1218
x 264
Contact:
Canada

Post#6 by tim » 02 Nov 2016, 21:24


Pat you should trying scaling your path so that it's an horizontal oval instead of a circle, then try brushing with peppers but NO to track direction and it should like you have bunch of peppers 3D on a table or flat surface illusion. at least i think that's what would happen with version 4 now.
Attachments
green_bell_peppers.jpg
green_bell_peppers.jpg # (174.61 KiB) Viewed 2261 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 5/16
Posts: 2244
Joined: 28 Sep 2016, 03:35
Cash on hand: 13,375.16 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 8
x 471
United States of America

Post#7 by Pat625 » 02 Nov 2016, 21:55


Perspective Path Brush.jpg
Perspective Path Brush.jpg # (178.2 KiB) Viewed 2259 times (Watermarked | Thumbnail)
If you are doing spirals, how do you determine whether it starts or stops larger or smaller?
0 x




Post Reply

Last 20 Members Who Visited This Topic

User avatar Pat625 (17), User avatar Conbagui (1), User avatar tim (6), User avatar gnerd (9)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: Pat625
2: leopardo-40
3: animicule
4: Ella
5: Issabella
6: oldmangrumpy
7: gnerd

Who is online

Users browsing this forum: No registered users and 5 guests