[Gimp-developer] Using GIMP from my own program

2008-12-14 Thread Pablo Yaggi
Hi, is it possible to use gimp from a C program ? I want to open an image use some plugin on it and save it. I know perl does something like that, but I couldn't find info about that, could somebody point me in a good direction ? Bests, Pablo ___ Gimp-de

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

2008-12-14 Thread Pablo Yaggi
ample ? Best Regards Pablo On Sunday 14 December 2008 13:50:25 Martin Nordholts wrote: > Pablo Yaggi wrote: > > Hi, is it possible to use gimp from a C program ? > > > > I want to open an image use some plugin on it and > > > > save it. I know perl does something

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

2008-12-14 Thread Pablo Yaggi
with plugins and tools, and It sould be very nice to use all that power for automatic process. Pablo On Sunday 14 December 2008 14:57:18 Martin Nordholts wrote: > Pablo Yaggi wrote: > > But I don't want to call it from a gimp plugin, I want to call it from > > > > inside

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

2008-12-14 Thread Pablo Yaggi
Ok, then I keep googling and I'll check gegl a little deep, thank's Martin, BR, Pablo On Sunday 14 December 2008 15:59:59 Martin Nordholts wrote: > Pablo Yaggi wrote: > > So ..., I think a couple of things are not clear to me about gimp, > > > > if plugins co

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, follo

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

2008-12-16 Thread Pablo Yaggi
(gimp-rotate floating-sel FALSE 180) (gimp-floating-sel-anchor floating-sel) ) (gimp-file-save 1 newimage newlayer "/home/pablo/glam-out.jpg" "/home/pablo/glam-out.jpg") (gimp-context-pop) ) Best Regards, Pablo On Sunday 14 December 2008 16:36:10 saulgo..

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

2008-12-16 Thread Pablo Yaggi
hange the actual zoom from inside the script? how ? Bests, Pablo On Tuesday 16 December 2008 15:45:15 saulgo...@flashingtwelve.brickfilms.com wrote: > Quoting Pablo Yaggi : > > Ok, I made it work, I just replaced newlayer for newimage in the > > gimp-edit-paste call and it worked.

Re: [Gimp-developer] SF-TOGGLE type?

2008-12-17 Thread Pablo Yaggi
SF-TOGGLE be evaluated as a boolean or int in a scheme script? > > > > I have been using (if (= inToggle TRUE) (do-true) (do-false)) where > > inToggle is a toggle (check box) parameter, > > > > Because (if inToggle (do-true) (do-false)) always returns as true. > >

[Gimp-developer] Register ENUMS

2008-12-17 Thread Pablo Yaggi
I can't find anywhere how to register enums in script-fu, is it possible ? I need to create a SF-ENUM with my own types, but first I need to define them according to documentation, Best Regards Pablo ___ Gimp-developer mailing list Gimp-developer@lists.X

[Gimp-developer] Strange Error

2008-12-17 Thread Pablo Yaggi
Working with gimp 2.6 this segment of codes (if (= (car (gimp-drawable-is-rgb image)) FALSE) (gimp-image-convert-rgb image) ) gives me this error Error while executing script-fu-mirror-table: Error: Procedure execution of gimp-image-conv

[Gimp-developer] Run-Mode & Enums

2008-12-18 Thread Pablo Yaggi
Hi, In the scrupt-fu browser under parameters most of the scripts even my own show as first parameter: run-mode INT32 Interactive,non-interactive but it can not be specified in call nor used inside the script as is was implicit declared. Why is it there ? what does it mean ? About Enums, I sti

Re: [Gimp-developer] Run-Mode & Enums

2008-12-18 Thread Pablo Yaggi
the browser help then it fails. On Thursday 18 December 2008 12:19:31 Rob Antonishen wrote: > If you specify RUN-NONINTERACTIVE it will run without the dialog box > appearing. > > On 12/18/08, Pablo Yaggi wrote: > > Hi, > > > > In the scrupt-fu browser under parameter

Re: [Gimp-developer] Run-Mode & Enums

2008-12-18 Thread Pablo Yaggi
the enums, any ideas ? I want to upload 3 plugins I made but it is not nice to pass options as numeric mode selector, sorry to annoy with this ... Bests, Pablo On Thursday 18 December 2008 17:43:24 saulgo...@flashingtwelve.brickfilms.com wrote: > Quoting Pablo Yaggi : > > But I try to

Re: [Gimp-developer] Run-Mode & Enums

2008-12-19 Thread Pablo Yaggi
> Script-fu has no special status, it's just an extension to gimp > In fact, Gimp-Python has been the standard recommended language interface > for quite a while now. Will it be deprecated some time soon ? Gimp-python is packed as an optional package in mi distro (mandriva) besides you need python

Re: [Gimp-developer] Run-Mode & Enums

2008-12-19 Thread Pablo Yaggi
> Speculating, and taking no action, only makes you look foolish. Sorry, I didn't take actions because I never used python, now I notice, from your example, in python you can pass and argument naming it, very nice ... You were very clear, and my assumption of seeing script-fu as core instead a plu