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

GIMP Python plugin that uses GEGL via pygegl

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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

GIMP Python plugin that uses GEGL via pygegl bootch@nc.rr.com 29 Feb 20:31
  GIMP Python plugin that uses GEGL via pygegl Joao S. O. Bueno 01 Mar 21:39
bootch@nc.rr.com
2012-02-29 20:31:46 UTC (over 12 years ago)

GIMP Python plugin that uses GEGL via pygegl

---
- ! 'I want to write a GIMP Python plugin that uses GEGL via pygegl (a Python extension that wraps GEGL.)

It seems that neither the GIMP PDB nor PyGIMP has a method to get a TileManager. You need a pointer to a TileManager as a parameter to gegl_node_new_child() when creating an input node connecting GEGL to a GIMP drawable.

I plan to modify PyGIMP to add drawable.getTileManager(), which would call gimp_drawable_get_tiles() and return the value as a Python long. Then you could pass that as a parameter to pygegl.new_child().

Is there an easier way, or flaws in the design?

'

Joao S. O. Bueno
2012-03-01 21:39:28 UTC (over 12 years ago)

GIMP Python plugin that uses GEGL via pygegl

---
- ! "On 29 February 2012 17:31, wrote:\n\n> I want to write a GIMP Python plugin that uses GEGL via pygegl (a Python\n> extension that wraps GEGL.)\n>\n> It seems that neither the GIMP PDB nor PyGIMP has a method to get a\n> TileManager. \ You need a pointer to a TileManager as a parameter to\n> gegl_node_new_child() when creating an input node connecting GEGL to a GIMP\n> drawable.\n>\n> I plan to modify PyGIMP to add drawable.getTileManager(), which would call\n> gimp_drawable_get_tiles() and return the value as a Python long. Then you\n> could pass that as a parameter to pygegl.new_child().\n>\n> Is there an easier way, or flaws in the design?\n>\nNo - the fact is that PyGIMP was never updated to be able to co-operate\nwith PyGegl -\n\nSo, please, if you can work around your issues by adding a new method to\nPygimp drawable, open an issue at GIMP's bugzilla, and attach your patch\nthere.\n\nI never took some time to look at it in depth, but I think we could have a\nbetter integration if a Drawable object could have an \".as_gegl_source\"\nmethod - which would return a pygegl node. (and raise an error if pygegl is\nnot installed) -\n\nregards,\n\n \ js\n -> _______________________________________________\n> gimp-developer-list mailing list\n> gimp-developer-list@gnome.org\n> http://mail.gnome.org/mailman/listinfo/gimp-developer-list\n>"