[Gimp-developer] script-fu problem in 2.6

saulgoode at flashingtwelve.brickfilms.com saulgoode at flashingtwelve.brickfilms.com
Thu Dec 18 00:21:00 PST 2008


Quoting "Luis A. Florit" <gimpdevel at luisflorit.endjunk.com>:

>> I haven't been following this discussion that closely; however, I
>> would point out that the PDB function 'gimp-layer-get-mask' will
>> return "-1" if the layer does not have a mask.
>
> Yes. I manage to use that in 2.4 (because some strange reason), but
> the method does not work in 2.6. How would you make it work?

(unless (= (car (gimp-layer-get-mask SharpenLayer)) -1)
   (gimp-layer-remove-mask SharpenLayer MASK-APPLY)
   )





More information about the Gimp-developer mailing list