Re: [Gimp-developer] Using GIMP from my own program

2008-12-16 Thread Pablo Yaggi
Ok, I made it work, I just replaced newlayer for newimage in the gimp-edit-paste call and it worked. But pasting into the image should work, shouldn't ?, do I have to set up a current layer or something ? bests, Pablo On Tuesday 16 December 2008 12:52:49 Pablo Yaggi wrote: Well, following all

Re: [Gimp-developer] Using GIMP from my own program

2008-12-16 Thread saulgoode
Quoting Pablo Yaggi pya...@alsurdelsur.com: Ok, I made it work, I just replaced newlayer for newimage in the gimp-edit-paste call and it worked. But pasting into the image should work, shouldn't ?, do I have to set up a current layer or something ? There is no paste-as-new-layer function

Re: [Gimp-developer] Using GIMP from my own program

2008-12-16 Thread Pablo Yaggi
Well, following all advices I decide to make the plugins I need for gimp, and use it in batch mode, this way plugins will be available for everybody. But my first attempt is not working fine, I'm coping/pasting the following code into the script-fu console, and I get a black image as glam-out.jpg

[Gimp-developer] script-fu problem in 2.6

2008-12-16 Thread Luis A. Florit
Hi, I have a script-fu that worked fine in 2.4 and it's broken in 2.6. It had a conditional to apply the layer's mask if it exists. This is what it read: (cond ((gimp-layer-get-mask SharpenLayer)(gimp-layer-remove-mask SharpenLayer 0)) ) Now it is broken. How do I tell

Re: [Gimp-developer] Using GIMP from my own program

2008-12-16 Thread Pablo Yaggi
Now I have my script running, It's a simple script that produces the table-mirror effect apple does, but is it possible to check whether the interface is available or not, I mean if gimp is running with -i mode (no interface). Also, the script resizes the original image, is it possible to change

Re: [Gimp-developer] Using GIMP from my own program

2008-12-16 Thread David Gowers
Hi, On Wed, Dec 17, 2008 at 6:15 AM, Pablo Yaggi pya...@alsurdelsur.com wrote: Now I have my script running, It's a simple script that produces the table-mirror effect apple does, but is it possible to check whether the interface is available or not, I mean if gimp is running with -i mode

Re: [Gimp-developer] script-fu problem in 2.6

2008-12-16 Thread Sven Neumann
Hi, On Tue, 2008-12-16 at 16:21 -0200, Luis A. Florit wrote: How do I tell script-fu 2.6 to apply a layer mask (if it exists)? I was unable to find something like a boolean gimp-layear-has-mask, and gimp-layer-remove-mask returns an error if the mask does not exist. Perhaps we need to

Re: [Gimp-developer] script-fu problem in 2.6

2008-12-16 Thread Sven Neumann
Hi, On Tue, 2008-12-16 at 16:21 -0200, Luis A. Florit wrote: I have a script-fu that worked fine in 2.4 and it's broken in 2.6. It had a conditional to apply the layer's mask if it exists. This is what it read: (cond ((gimp-layer-get-mask SharpenLayer)(gimp-layer-remove-mask

Re: [Gimp-developer] script-fu problem in 2.6

2008-12-16 Thread saulgoode
Quoting Sven Neumann s...@gimp.org: Perhaps we need to add gimp-layear-has-mask then. Until then you could use gimp-plugin-set-pdb-error-handler to take over the error handling in order to suppress the warning. I haven't been following this discussion that closely; however, I would point