gimp stuff

Despite at one time being a fairly prolific gimp script writer (looks like I have about 23 in the main gimp distro, and probably another dozen scattered about), I haven’t written one in years. Partially because the primary scripting engine in gimp is “script-fu” which is a really rudimentary scheme like language and was always a real pain to debug.

But now, theres a gimp python plugin. Well, actually, theres been one for years, but I’ve been lazy and never made much use of it. So I got some idea in my head and decided it needed to be scripted. Writing gimp scripts in python is so much nicer than in script-fu. Not only is the language saner, but you have full access to the standard python libs.

Anyway, a couple rudimentary python gimp scripts are here. One to draw brush stroke preview images, one to convert a font into a series of brushes, and one to convert a font into a gimp image pipes (aka, animated brushes, or “hoses”). There not well tested or anything, and I have no idea if they work on anything but my machine. So they might not work on windows or osx.

4 thoughts on “gimp stuff

  1. I downloaded your python plugins “font to brushes” and “font to image hose” and they are throwing the same error:

    RuntimeError: Could not open ‘$HOME/.gimp-2.6/brushes//Sans_a_20.0.gbr’ for writing: No such file or directory

    I know nothing about Python, so can you help?

    I am using GIMP 2.6.7. on Vista, using Python 2.6.2.

    • I suspect it’s the $HOME stuff now working on windows. If you edit the script, you can replace the offending line with something that will work on windows. I don’t really know any of the specifics though. Sorry.

  2. For windows the path function is:

    os.path.expanduser(‘~’)

    Took me awhile to figure it out, but I managed. Thanks again, Adrian for your work on these.

    Now I need to figure out how to keep the dingbats from getting fuzzy as you enlarge the brush.

    • I figured out what I was doing wrong, Save the font brushes in large sizes. LOL.

      My apologies for posting so much, just want to get the word out, in case someone else wants to know. :)

      Thanks again!

Comments are closed.