It is currently Fri Sep 19, 2014 5:51 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Looking for a "Blending" - Script-fu or plug in
PostPosted: Tue Feb 14, 2012 10:40 pm  (#1) 
Offline
GimpChat Member

Joined: Feb 14, 2012
Posts: 274
I sure wish there was a plug-in that could make a blend that blends from a contoured edge to a straight edge like this image I have place:

Image

A plug in that can take an image on a layer and continually make copies and resize horizontally and change the colors as it gets thinner would make a whole bottle type of object. Thats what I would like to find.

Alan


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: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Tue Feb 14, 2012 11:50 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 3304
Location: Metro Vancouver, BC
Have a look at the CloneLayer Tool, if you have GIMP 2.7.x. It won't do everything but it might get you started.

_________________
Image
Gimp 2.8.14, Ubuntu 14.04, median user
Gimp Chat Tutorials Index


Top
 Profile  
 
 Post subject: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Wed Feb 15, 2012 12:00 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 617
Here ya go, hot of the presses: http://silent9.com/incoming/sc ... _blend.scm

It will use the active gradient and blend it across the current selection (or the whole image if no selection - but that is silly to do...) either horizontally or vertically:
Attachment:
selection_blend.jpg
selection_blend.jpg [ 25.94 KiB | Viewed 1553 times ]


There is one oddity - it seems to have a bug on my system in the horizontal mode where I get a PDBCallback error on the progress bar, which is why I've redirected the error messages to the console. It doesn't happen in the vertical mode, oddly enough, so runs much slower in the vertical mode as it updates the progress bar when blend is called.....

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Profile  
 
 Post subject: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Wed Feb 15, 2012 1:13 pm  (#4) 
Offline
GimpChat Member

Joined: Feb 14, 2012
Posts: 274
Wow! Thanks RobA

That looks really good. Looks like it would work perfectly. It even can follow two contours on each side of the selection. Can't wait to try it.

I am a graphic designer and not very good with scripts. Can somebody show me what to do with the script text? Do I just save it as a .txt file and put it into my Gimp 2.6 scripts folder?

Alan


Top
 Profile  
 
 Post subject: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Wed Feb 15, 2012 1:32 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 11440
Location: "Looking for my eraser" =P
You save the text as a SCM extension in your scripts folder.

Hrmmm..horizontal blend worked okay for me vertical takes awhile. :)
Then it works
Image

Image

I take it this is for 2 color gradients only?
Whats the difference in just using a gradient fill for the selection?

_________________
Image
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Wed Feb 15, 2012 1:34 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 617
Right click the link and save the .scm file into your C:\Documents and Settings\<username>\.gimp-2.6\scripts folder rather than the gimp installation folder (assuming you are using windows XP). Not sure where the comparable location is in other versions of windows. In most linux distributions it would be ~/.gimp-2.6/scripts

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Profile  
 
 Post subject: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Wed Feb 15, 2012 1:41 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 617
Rod wrote:
You save the text as a SCM extension in your scripts folder.

Hrmmm..horizontal blend worked okay for me vertical takes awhile. :)
Then it works

I take it this is for 2 color gradients only?
Whats the difference in just using a gradient fill for the selection?


Not sure why vertical didn't work. Oddly enough it is much slower because it is working correctly :) (The blend call updates the progress bar)

It works for me. Do you get errors?
Attachment:
blend.jpg
blend.jpg [ 16.21 KiB | Viewed 1531 times ]


It will work with ANY gradient, (what ever is active).

EDIT: I've uploaded a new version that provides a gradient picker and a reverse checkbox to reverse the gradient.

The gradient follows the shape of the selection in a horizontal or vertical manner - something that can't be done with the a gradient fill on the whole selection.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Last edited by RobA on Wed Feb 15, 2012 1:57 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Wed Feb 15, 2012 1:52 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1274
Location: not from Guildford after all
A slightly different approach from Mr A's, the following script will add a command "Filters->Distorts->Contour Fill Selection", which will scale each row of the current layer to fill the selection. It probably still needs some work but seems to be in a somewhat usable state.

http://chiselapp.com/user/saulgoode/rep ... d6366b14ed

Example (selection outlined in blue):

Attachment:
contour-fill-sel.jpg
contour-fill-sel.jpg [ 129.87 KiB | Viewed 1525 times ]


Produces the following new layer (original layer and selection are retained):

Attachment:
contour-fill-result.png
contour-fill-result.png [ 136.23 KiB | Viewed 1525 times ]

_________________
A man who does not read good books has no advantage over a man who cannot read them. -- Mark Twain


Top
 Profile  
 
 Post subject: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Wed Feb 15, 2012 2:03 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 11440
Location: "Looking for my eraser" =P
I do not get any errors at all.It just doesn't blend correctly with vertical.
I am downloading your new one now.

Thanks Saulgoode.

_________________
Image
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Looking for a "Blending" - Script-fu or plug in
PostPosted: Wed Feb 15, 2012 2:10 pm  (#10) 
Offline
Administrator
User avatar

Joined: May 22, 2008
Posts: 6031
Location: Somewhere in GIMP
Oh, I need to check out saulgoode's too.

This is RobA's. I used horizontal for the frowny O and the vertical for the background.

Image

_________________
Image
There are two major products to come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

Image


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 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 Gimp Chat's RSS Feed    * Subscribe to Gimp Chat's Tutorial Feed    * Subscribe to Gimp Chat's G'MIC Feed


Powered by phpBB3 © phpBB Group