It is currently 21 Jan 2018, 06:04

GIMP Python Fu ScriptsFill Selection 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: 5/13
Posts: 2071
Joined: 25 Sep 2016, 17:16
Cash on hand: 7,180.19 GLP
Bank: 42,250.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 1106
x 240
Contact:
Canada

Fill Selection With Perspective Brush Script for GIMP

Post#1 by tim » 01 Nov 2016, 00:12


This spawned from this thread on gimpchat
This script fills Selection with Active Brush, but you can select a percentage for horizon so that it applies a pseudo perspective on it.
:download:
Fill_Selection_With_Perspective_Brush.zip #
zipped .py file (unzip, put in your GIMP's /plug-ins/ folder)
(1.49 KiB) Downloaded 91 times
:download:
Fill_Selection_With_Perspective_Brush (2).zip #
version 2 - Allow Vanishing X percentage. Select All if None selected. Fill out around borders and not even check if area is selected because selection will prevent brush from taken place for us anyways.
(1.84 KiB) Downloaded 67 times
:download:
Fill_Selection_With_Perspective_Brush (3).zip #
version 3 - Allow "RANDOM" or "ALIGNED" placement.
(2.18 KiB) Downloaded 120 times
Menu location: Edit/Fill Selection With Perspective Brush...

Script options:
- Horizon Percentage (Brush size percentage at horizon) (default 50)
- Vanishing X (Percentage) (of Selection) (default 50 which is center of X of selection) (added to version 2)
- Horizontal Spacing (percentage of brush size), (default 100) when it's closest to you (at bottom of selection, what percentage of brush size to use for spacing).
- Vertical Spacing(percentage of brush size), (default 100) when it's closest to you (at bottom of selection, what percentage of brush size to use for spacing).
- Placement (You can choose "ALIGNED" or "RANDOM") (added to version 3)


sample output below using the default Bell Pepper brush.
Fill_Selection_With_Perspective_Brush.jpg
Fill_Selection_With_Perspective_Brush.jpg # (162.6 KiB) Viewed 1499 times (Watermarked | Thumbnail)
sample output below using vertical spacing at 50 percent.
Fill_Selection_With_Perspective_Brush_2.jpg
Fill_Selection_With_Perspective_Brush_2.jpg # (178.63 KiB) Viewed 1498 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 3/13
Posts: 2049
Joined: 27 Sep 2016, 20:35
Cash on hand: 11,979.76 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 430
United States of America

Post#2 by Pat625 » 01 Nov 2016, 03:22


YOU have done it again, Tin! How do you have the answer so quickly?
0 x




User avatar
Rod
Forum Member
View: Showcase | Slideshow
Topic Posts: 2/13
Posts: 11
Joined: 18 Oct 2016, 03:42
Cash on hand: 12.34 GLP
Gender: Guy
x 1
United States of America

Post#3 by Rod » 01 Nov 2016, 03:26


Tran would it be possible to set the brush to follow a path with perspective? Then you could do perspective spirals. :)
0 x



Image

User avatar
RJKD
Tutorial Creator
View: Showcase | Slideshow
Topic Posts: 1/13
Posts: 1280
Joined: 03 Oct 2016, 06:01
Cash on hand: 8,896.25 GLP
Bank: 0.00 GLP
Gender: Guy
Location: Sheffield UK
Operating System: Windows
GIMP Version: 2.8.20
x 1404
x 195
Contact:
Great Britain

Post#4 by RJKD » 01 Nov 2016, 04:13


Great script T, massive potential. Thank you. :gimp_clap:
Perspective_brush.jpg
Perspective_brush.jpg # (131.19 KiB) Viewed 1481 times (Watermarked | Thumbnail)
0 x




No avatar
rich2005
GIMP Guru
View: Showcase | Slideshow
Topic Posts: 2/13
Posts: 51
Joined: 15 Oct 2016, 12:47
Cash on hand: 525.51 GLP
x 11
Great Britain

Post#5 by rich2005 » 01 Nov 2016, 06:04


Rod wrote:... would it be possible to set the brush to follow a path with perspective? Then you could do perspective spirals. :)
You could try the follow path plugin

looks like this
followpath.jpg
followpath.jpg # (100.37 KiB) Viewed 1478 times (Watermarked | Thumbnail)
0 x




User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 3/13
Posts: 2049
Joined: 27 Sep 2016, 20:35
Cash on hand: 11,979.76 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 430
United States of America

Post#6 by Pat625 » 01 Nov 2016, 06:53


Tin: Where can I download the follow path script?
0 x




No avatar
rich2005
GIMP Guru
View: Showcase | Slideshow
Topic Posts: 2/13
Posts: 51
Joined: 15 Oct 2016, 12:47
Cash on hand: 525.51 GLP
x 11
Great Britain

Post#7 by rich2005 » 01 Nov 2016, 07:49


Pat625 wrote:Tin: Where can I download the follow path script?
http://www.arakne.es/en/dessign/gimp-pl ... oordinate/
0 x




Post Reply

Last 20 Members Who Visited This Topic

User avatar gnerd (2)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: trandoductin
2: Pat625
3: Issabella
4: oldmangrumpy
5: tim
6: tim
7: Issabella

Who is online

Users browsing this forum: No registered users and 1 guest