RSS/Atom feed Twitter
Site is read-only, email is disabled

Activ layers in python-fu

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Activ layers in python-fu Raymond Ostertag 02 Aug 15:31
Raymond Ostertag
2003-08-02 15:31:25 UTC (over 20 years ago)

Activ layers in python-fu

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