Search code examples
pythonubuntugimpgimpfu

Where can I select my personal plugins in GIMP?


I have been trying to run these sample scripts (specially helloworld.py and pytemplate.py) to get the hang on using python code in GIMP. I'm specially interested in pytemplate.py which is intended to show how to do something over an existing image (hopefully, the current state of the image which has the focus)

As far as I know, I have to place them in ~/.gimp-2.8/plug-ins/ (in my GIMP's personal folder) and give them run permissions (chmod +x somescript.py).

The gimpfu.register() function has a kwarg that seems to control where the "trigger option" would appear. It looks like:

menu="<Image>/Filters/Enhance"

However, my GIMP has the menus in Spanish language, somehow this makes me being afraid that it can interfere in rendering the "trigger"... Anyway, I restarted GIMP and tried to follow the menu path from my GIMP's main window's menu and didn't find anything at all.

The point is: What else do I have to do to run the script and see what happens? Can I actually control where the "trigger option" to run my script will appear with menu kwarg?


Solution

  • I reviewed permissions and they were 400. I was sure to have executed chmod +x *py. Well, finally I found the "triggers".