Sorry -- there was an error in my python function

On Wednesday 26 August 2009, Joao S. O. Bueno wrote:

>
> Huh???ah,  You mean:
>
> def find_layer_by_name (image, name):
->     for layer in image:
+     for layer in image.layers: 
>         if layer.name == name:
>             return layer
>     return None
That is the correct version.

>
>   js
>   -><-

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to