> >>> num_images, image_ids = pdb.gimp_image_list()
> >>> image_ids
> (2,)
> >>> active_layer = pdb.gimp_image_get_active_layer(image_ids[0])
> Traceback (innermost last):
>   File "/usr/lib/gimp/1.2/plug-ins/gtkcons.py", line 292, in run
>       exec cmd in self.namespace
>         File "<string>", line 1, in ?
>         TypeError: wrong parameter type
I had a similar problem in a python script, I get a list of the layers
in an image with pdb.gimp_image_get_layers and tried to manipulate these
layers but get the same error, the list is an array of INT32s but the
layer functions need a LAYER value, so is there a way to convert an ID
to a layer to prevent such error?

Gimp-user mailing list

Reply via email to