RSS/Atom feed Twitter
Site is read-only, email is disabled

Trying to Make a Plug-In

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Trying to Make a Plug-In CallieB 22 Apr 22:04
  Trying to Make a Plug-In Chris Mohler 22 Apr 22:20
   Trying to Make a Plug-In Chris Mohler 22 Apr 22:20
  Trying to Make a Plug-In Akkana Peck 24 Apr 01:19
2010-04-22 22:04:04 UTC (almost 15 years ago)
postings
1

Trying to Make a Plug-In

Hey guys,

I have very limited experience in programming, and none at all with making plugins, but I want to make a plugin that would make my life a whole lot easier.

Unfortunately, it seems that all the information regarding this process is written for people who are experienced in programming or writing plugins or such, and is unintelligible to me.

If someone would be willing to take pity on me and help walk me through the basics, that would be a huge help.

I'm work on Mac OS 10.5, which is making the problem even worse because there's next to no information out there for coding, for Gimp, on Mac.

My first question would be, what language should I be using and how do I set it up so that it will work.

Thank you so much~!

Chris Mohler
2010-04-22 22:20:10 UTC (almost 15 years ago)

Trying to Make a Plug-In

On Thu, Apr 22, 2010 at 3:04 PM, Callie wrote:

My first question would be, what language should I be using and how do I set it up so that it will work.

I'd recommend python, as it is pretty easy to pick up even for the non-programmer.

IIRC the OSX version of GIMP includes python support - you can check by selecting Filters->Python-Fu->Console. If that opens, you have python support. If so, place plugin (.py) files into "[your home]/Library/Applications Support/Gimp/plug-ins" (create directory if necessary).

There's this article, which is a bit dated but still useful: http://www.gimp.org/docs/python/index.html

Then you might check out the plug-in registry for plug-ins tagged 'python' and study how they are coded: http://registry.gimp.org/taxonomy/term/52

Also - you can interact with the current image (or create a new image) in the Python-Fu console, which can be useful. Also see Help->Procedure Browser. All of those functions can be called from python with pdb.finction_name()

Happy hacking, Chris

Chris Mohler
2010-04-22 22:20:44 UTC (almost 15 years ago)

Trying to Make a Plug-In

On Thu, Apr 22, 2010 at 3:20 PM, Chris Mohler wrote:

python with pdb.finction_name()

Should have been pdb.function_name() of course ;)

Chris

Akkana Peck
2010-04-24 01:19:22 UTC (almost 15 years ago)

Trying to Make a Plug-In

Callie writes:

Hey guys,

I have very limited experience in programming, and none at all with making plugins, but I want to make a plugin that would make my life a whole lot easier.

Unfortunately, it seems that all the information regarding this process is written for people who are experienced in programming or writing plugins or such, and is unintelligible to me.

I wrote a pair of articles a while back for Linux Planet on writing GIMP plug-ins in Python. Although there wasn't space to teach Python from scratch, I tried to write even for people who don't have much programming background:
http://www.linuxplanet.com/linuxplanet/tutorials/6720/ (part I) http://www.linuxplanet.com/linuxplanet/tutorials/6734/ (part II)

My first question would be, what language should I be using and how do I set it up so that it will work.

Assuming you have GIMP Python support already installed (do you have a Filters->Python-fu menu?), most people find Python easier to read than Script-fu. But Script-fu does have the advantage that there are lots of scripts available to copy, and you can count on it already being installed.

...Akkana