pythonpluginsgimp

How to set a `GimpCoreObjectArray` property in Python - GIMP 3


I am trying to call the file-pdf-export-multi procedure which takes an argument images of type GimpCoreObjectArray. I have tried setting it to an array of Gimp.Image. However, this throws the following error:

TypeError: could not convert [<Gimp.Image object at 0x70604af8af40 (GimpImage at 0x388a2590)>, ...] to type 'GimpCoreObjectArray' when setting property 'GimpProcedureConfig-file-pdf-export-multi.images'

Solution

  • Maybe similar to drawables:

    config.set_property('image', image)
    config.set_core_object_array('drawables', [drawable])