Conquer Club

[GIMP] Plugins (requires Python!)

How to make a map. Official Handbook, Guides, Tutorials and more...

Moderator: Cartographers

Forum rules
Please read the Community Guidelines before posting.

[GIMP] Plugins (requires Python!)

Postby natty dread on Thu Apr 07, 2011 8:48 am

I wrote a couple of python plugins for GIMP.

To use them, you need to have PythonGIMP installed. Installing it is a real pain in the ass, at least on windows, but there's a good tutorial on installing PythonGIMP here: http://www.gimpusers.com/tutorials/inst ... -6-windows

After you have pythongimp installed, here's how you install the plugins: First download the file. The files in the registry are saved as .py.txt files due to a bug, so you need to rename them to .py files, then save them to your plugins folder. There are usually 2 plugin folders, either works, you can see what they are in the gimp preferences. You can also specify another plugin folder there if you want to.

Usually, the plugin folder is: C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins\

Ok, the plugins are these:

http://registry.gimp.org/node/25198 - This one appears in the Filters > Render menu and it automates creating a simple texture, it does it the same way that it is done in the 1st part of my tutorial. You get to adjust all the settings the same way you get to when you do it manually.

http://registry.gimp.org/node/25199 - This creates a bevel in the shape of the current selection. It's a neat tool for adding bevels on land areas, you can select the land area by Alpha to Selection, then use this plugin to add a bevel layer in the shape of the land. The bevel appears on a separate layer, so you get to adjust the opacity/layer mode settings of the bevel later if you need to.

http://www.gimpchat.com/download/file.php?id=2132 - This creates inner and outer glows in the shape of the current selection. It works similarly as the bevel one.

I might be writing more python plugins in the future... if there's any interest in them (and if anyone else is patient enough to go through the hassle of installing PythonGIMP... :D )
Last edited by natty dread on Sat Jul 16, 2011 12:54 am, edited 2 times in total.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: GIMP plugins (requires Python!)

Postby natty dread on Sun Apr 10, 2011 7:11 am

In case anyone actually uses these... the latest versions of my plugins can now be found from the GIMP registry, so I won't be uploading them to Fileden anymore, and the links here now lead to the registry... the registry software has a slight glitch that renames the plugins as ".py.txt" so you'll have to remove the ".txt" extension from them when you copy them to your plugins directory.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: GIMP plugins (requires Python!)

Postby natty dread on Tue Apr 19, 2011 5:08 am

Does anyone use these?
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: GIMP plugins (requires Python!)

Postby kengyin on Wed Apr 27, 2011 1:58 am

can't you just select the bevel button that is already there?
Sergeant kengyin
 
Posts: 226
Joined: Sun Sep 12, 2010 4:32 am

Re: GIMP plugins (requires Python!)

Postby natty dread on Wed Apr 27, 2011 3:47 am

My script allows more options. A lot more.

The default bevel only lets you select the strength of the bevel. You don't get to choose things like light angle, shape curves, inner/outer bevel, noise, elevation, layer mode, opacity, etc. Also, my script has a preview.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: GIMP plugins (requires Python!)

Postby natty dread on Wed Apr 27, 2011 3:59 am

To demonstrate:

Click image to enlarge.
image
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: GIMP plugins (requires Python!)

Postby ender516 on Wed Apr 27, 2011 6:59 pm

Ooh, niiice.
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: GIMP plugins (requires Python!)

Postby natty dread on Thu Apr 28, 2011 12:00 am

ender516 wrote:Ooh, niiice.


Thanks.

For the record, python is a really fun language to write. Probably the easiest one I've tried so far. I first tried writing these in Scheme but all the damn parentheses gave me a headache...
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: GIMP plugins (requires Python!)

Postby ender516 on Fri Apr 29, 2011 11:58 am

Ah, Scheme, a dialect of LISP which is an acronym for

  • Lots of Irritating Superfluous Parentheses
  • Lost in Stupid Parentheses
  • Lots of Isolated Silly Parentheses
  • Lots of Irritating Single Parentheses
  • Lots of Infuriating & Silly Parentheses
  • Lost In a Sea of Parentheses
  • Language of Insufferable Superfluous Parentheses
  • Lots of Insipid, Stupid Parentheses
(many thanks to the TheFreeDictionary.com)
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: GIMP plugins (requires Python!)

Postby natty dread on Sat Jul 16, 2011 12:47 am

Another script I wrote a while ago -

http://www.gimpchat.com/download/file.php?id=2132

It creates inner and outer glows based on the selection. You can adjust colour, width, feather; add noise, etc.

Example:

Click image to enlarge.
image
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked


Return to Tools & Guides

Who is online

Users browsing this forum: No registered users