Hello,

I try to have a list of the layers in an image and to active them one by one.
I am using Python-fu (newbie with python) with Gimp 1.2, i am doing this :

   layers= pdb.gimp_image_get_layers( inImage )[1]
   activeLayer = pdb.gimp_image_get_layer_by_tattoo( inImage, layers[0] )
   pdb.gimp_image_set_active_layer( inImage, activeLayer )

seems wrong because layers[0] activ the background layer but other values
in the array index produce "RuntimeError: execution error"

Any help welcome,

@+
Raymond
_______________________________________________
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to