[Gimp-developer] script-fu problem in 2.6
Luis A. Florit
gimpdevel at luisflorit.endjunk.com
Thu Dec 18 15:16:02 PST 2008
> > > 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)
> )
Thanks!!
L.
More information about the Gimp-developer
mailing list