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 a

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

2008-12-16 Thread saulgoode
Quoting 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 ? There is no "paste-as-new-layer" function provided as such by

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 w

[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 script

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 t

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 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 > > (no interface).

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-m

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

2008-12-16 Thread Luis A. Florit
* El 17/12/08 a las 0:08, Sven Neumann chamullaba: > 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: > > > > (

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

2008-12-16 Thread saulgoode
Quoting Sven Neumann : > 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 out that the