Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Installing Python scripts
W10 gimp 2.10.22
How to install any python plugin.
Would like a working small example
e.g. from WW
import gimp

def python_message(image, drawable, message):

        "Show message",
        "Show message",
        "Pin-Chou Liu",
        "Pin-Chou Liu",
        "<Image>/Filters/Hello World...",
            (PF_STRING, "message", "message", "Hello World"),

  • Go to Filters>Python-fu>Console, and enter print
  • Using your explorer, navigate to the directory in the answer. It should contain a plug-ins subdirectory.
  • Put your Python file in that plug-ins subdirectory (or in any subdirectory under it).
  • Restart Gimp.
If your plug-in doesn't appear, see

If you need script examples, see
Thanks, Ofnuts,
Trying Gimp2.8 now, deleted gimp 2.20.22
Old plugins example, old guideloab with extensions was (is I hope reviable).
This is different to gimp 2.10. 22
class arakneguideLab(gimpplugin.plugin):
    def start(self):
        gimp.main(self.init, self.quit, self.query, self._run)
    def init(self):
    def quit(self):
    def query(self):
        cright = "jfgarcia"
        date = "2013-2014"
        plug_descr = _("Admin")
        plug_params = [(PDB_INT32, "run_mode", "Run mode"), (PDB_IMAGE, "image", "Input image"),]
        gimp.install_procedure("arakne_guide_lab", plug_descr, plug_descr, "jfgarcia", cright, date, "<Image>/GTK/Guides lab...", "RGB*, GRAY*", PLUGIN, plug_params,[])

    def arakne_guide_lab(self, runmode, img):
        gLabUtls(runmode, img)
if __name__ == '__main__':

Especially this line: <Image>/GTK/Guides lab...", "RGB*, GRAY*", PLUGIN, plug_params,[])

Such that I got (get in 2.8) the GTK tab!!!!

How to do that in 2.10,22 ??? if at all?

Will stay a while with 2.8

AFAIK nothing has changed for this between 2.8 and 2.10. But the example you show is the "complicated" registration. Could be overkill. What kind of parameters do you need for your plugin?
Looking at this as a non-coding type person.

The / combination works in my linux kubuntu 18.04 Gimp 2.10.22
Not so in a Win10 VM / Gimp 2.10.22 Gives nondescript wire-read errors, looks like is the culprit.

There is another (extended) version guidelab_paint which incorporates drawUI in the plugin code. That does work in Win10 / Gimp 2.10.22. screenshot.

That plugin attached, maybe you can dig something out of the code.

Attached Files
.zip (Size: 18.18 KB / Downloads: 7)

Forum Jump: