Re: [Gegl-developer] Choosing the operation input format based the connected nodes output format



This appears to work now in master:

Python 2.7.4 (default, Apr 19 2013, 18:32:33)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import Gegl; Gegl.init(0, "")
>>> ptn = Gegl.Node()
>>> pnm_node = ptn.create_child("gegl:ppm-load")
>>> pgm_node = ptn.create_child("gegl:ppm-load")
>>> pnm_node.set_property("path", "test.pnm")
>>> pgm_node.set_property("path", "test.pgm")
>>> Gegl.graph_dump_outputs(pnm_node)
gegl:ppm-load 0x9860090: output=R'G'B' u8
  bounds: 0, 0, 100×100
>>> Gegl.graph_dump_outputs(pgm_node)
gegl:ppm-load 0x98600f8: output=Y' u8
  bounds: 0, 0, 100×100
>>>



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