[Gimp-developer] 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?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]