I’m trying to rewrite a plugin for GIMP 2.99 and I’m trying to implement
plug-in-map-object.
I have an image, create a copy to work with ‘new_image’, merge all layers…
I’m stuck at the point where to define the layer(s) to pass to the plug-in (line 74).
config.set_property('drawables', layerstack[0]) # todo GimpObjectArray, The input drawables
It expects a GimpObjectArray. How do I obtain that?
If I try layerstack[0] it tells me:
TypeError: could not convert <Gimp.Layer object at 0x7fd39dd17c00 (GimpLayer at 0x558342c8db70)>
to type 'GimpObjectArray' when setting property 'GimpProcedureConfig-plug-in-map-object.drawables'
I can’t figure out what to put in there. It was so easy in GIMP 2.10 where it was just ‘layer’.
The complete script is here:
https://pastebin.com/7EvHGRvd
Any ideas?