[Gimp-developer] Activ layers in python-fu

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

 



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

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux