It is currently Sat May 25, 2013 7:31 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Two requests for scripts
PostPosted: Tue Jul 05, 2011 12:52 pm  (#1) 
Offline
Administrator
User avatar

Joined: May 22, 2008
Posts: 5510
Location: Somewhere in GIMP
http://gimpchat.com/viewtopic.php?p=27272#p27272

http://gimpchat.com/viewtopic.php?p=27283#p27283

_________________
Image
Law of Gravity - Any tool, nut, bolt, screw, when dropped, will roll to the least accessible place.
Image


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Profile  
 

 Post subject: Pin-Stripe Border Script
PostPosted: Tue Jul 05, 2011 3:06 pm  (#2) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 347
Location: Wisconsin
Here is a Pin-Stripe border script (Oregonian's tutorial)

It works on the current layer so it is a little more versatile. The width and colors can be specified. Tested on RGB and gray-scale images.

Appears at Filters > Decor > Pin-Stripe Border...

Edit1: Updated the script to fix frame shift problem.
Edit2: Set paint tool and add option to merge border down or not.


Attachments:
Pin-Stripe Border.scm [3.53 KiB]
Downloaded 55 times

_________________
Image


Last edited by bkh1914 on Tue Jul 05, 2011 9:05 pm, edited 2 times in total.
Top
 Profile  
 
 Post subject: Re: Two requests for scripts
PostPosted: Tue Jul 05, 2011 3:31 pm  (#3) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 347
Location: Wisconsin
Drat!!!
I just noticed that the border is lopsided by one pixel because of the way GIMP strokes a selection from a script.

I'll have it updated in a few minutes... I hope.

Fixed!!!
Updated the script in the original post.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Two requests for scripts
PostPosted: Tue Jul 05, 2011 4:21 pm  (#4) 
Offline
Administrator
User avatar

Joined: May 22, 2008
Posts: 5510
Location: Somewhere in GIMP
Slick! :bigthup Thank you!

A suggestion. If you'd preface your filenames with bkh, we'd know who did them in the file list.
bkh-pin-stripe-border.scm

Done with the default settings.
Image

_________________
Image
Law of Gravity - Any tool, nut, bolt, screw, when dropped, will roll to the least accessible place.
Image


Top
 Profile  
 
 Post subject: Re: Two requests for scripts
PostPosted: Tue Jul 05, 2011 5:36 pm  (#5) 
Offline
Administrator
User avatar

Joined: May 22, 2008
Posts: 5510
Location: Somewhere in GIMP
Would it be possible to make a choice in the script dialog to leave the border on a separate layer for later editing if desired?

_________________
Image
Law of Gravity - Any tool, nut, bolt, screw, when dropped, will roll to the least accessible place.
Image


Top
 Profile  
 
 Post subject: Re: Two requests for scripts
PostPosted: Tue Jul 05, 2011 5:44 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Apr 23, 2010
Posts: 824
Location: not from Guildford after all
bkh, nice job on the pin-stripe script. I'd suggest, however, that you use 'gimp-context-set-paint-method' so that your script is ensured to paint with the pencil or paintbrush, regardless the active paint tool. As currently written, depending upon what paint tool is active when the script is executed, the result might not be as expected.

Since the PDB browser does not list the available methods, I will post them here: "gimp-pencil", "gimp-paintbrush", "gimp-eraser", "gimp-airbrush", "gimp-ink", "gimp-clone", "gimp-heal", "gimp-perspective-clone", "gimp-convolve", "gimp-smudge", and "gimp-dodge-burn". The values are indeed strings, so the quotation marks should be included in the procedure call. For example,
Code:
(gimp-context-set-paint-method "gimp-paintbrush")

_________________
There are two types of people in the world. Those who believe in the principle of bivalence, and those who do not.


Top
 Profile  
 
 Post subject: Re: Two requests for scripts
PostPosted: Tue Jul 05, 2011 6:04 pm  (#7) 
Offline
Administrator
User avatar

Joined: May 22, 2008
Posts: 5510
Location: Somewhere in GIMP
saulgoode wrote:
bkh, nice job on the pin-stripe script. I'd suggest, however, that you use 'gimp-context-set-paint-method' so that your script is ensured to paint with the pencil or paintbrush, regardless the active paint tool.
The pencil would be the best one. No antialiasing. Everything is horizontal or vertical so it's not needed.

_________________
Image
Law of Gravity - Any tool, nut, bolt, screw, when dropped, will roll to the least accessible place.
Image


Top
 Profile  
 

 Post subject: Re: Two requests for scripts
PostPosted: Tue Jul 05, 2011 6:37 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 9033
Location: "Looking for my eraser" =P
Nice script!
Thanks for sharing it bkh. :)

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Two requests for scripts
PostPosted: Tue Jul 05, 2011 9:02 pm  (#9) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 347
Location: Wisconsin
saulgoode, thanks for the compliment and information.
As you probably noticed, I had already run into trouble with the paint mode and opacity. I was wondering what the paint method did. I've added it to the script.

Oregonian wrote:
Would it be possible to make a choice in the script dialog to leave the border on a separate layer for later editing if desired?

Done.

Oregonian wrote:
The pencil would be the best one. No antialiasing. Everything is horizontal or vertical so it's not needed.

Looking at your tutorial, the final stroke is 5px, which gives a 2.5px wide line inside the frame. That feathers the outer line into the inner line, which gives a quasi bevel effect. The paint brush will do the same feathering, the pencil won't. The script uses a 100% hard brush so it produces exactly the same type of stroke as the line stroke does. I'll leave it that way for now.

Thanks for the feedback everyone.

Modified script is in the original post.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Two requests for scripts
PostPosted: Tue Jul 05, 2011 9:16 pm  (#10) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 9033
Location: "Looking for my eraser" =P
Nicely done! :)

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group