Hello

For a while I was doing this to merge two layers: I iterate through
the entire stack of layers, to make them visible, and the rest
unvisible, and using the merge visible layers to join them.

   for L in img.layers:
       if L == layer1 or L == layer2:
           pdb.gimp_drawable_set_visible(L, True)
       else:
           pdb.gimp_drawable_set_visible(L, False)
   pdb.gimp_image_merge_visible_layers(img, 0)


Is there a better way to do this?


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

Reply via email to