It is currently Fri Sep 25, 2026 10:49 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: GIMP 3 now has GEGL automation in python console
PostPosted: Thu Jun 12, 2025 8:46 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
coeing wrote:
gasMask wrote:
MareroQ wrote:
Writing Python plugins in Gimp-3.0 was supposed to be very easy. :hehe :flirt :tantrum
However, the real improvement would be adding GEGL filters to PDB :bowdown

The DrawableFilter could be easier than PDB, IDK, but it really depends on the documentation of a Gegl DrawableFilter.

I think that Python 3.11 is easier to program than Python 2.7 especially with VSCode. When the documentation of Gimp, GimpUi, Babl, etc. modules is done, it should be easier.


@contrast_ @gasMask Thanks a lot for sharing your examples, there are not a lot of it yet and it helps to start :bigthup

I am currently using Visual Studio Code to write my Python scripts for Gimp. It works quite well, but what I do not get to work is to get the typings of "Gimp". I import the namespace with `from gi.repository import Gimp`, but there is no autocomplete.

With `from gi.repository import GLib, Gio` this works for GLib and Gio, probably because I added the typings with `pip install PyGObject-stubs`.

Is there any dependency I can install to get the Gimp bindings/types?



Yes you could make a python plugin but you are better off just applying GEGL filters on a layer group and then sharing the layer group as an .xcf file with others. Then anything they put inside the layer group will have the effects you want

Or you can just send someone a Batcher Script with GEGL filters + more

Or you could make pure GEGL plugins and syntax like I do


Top
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group