[Gimp-user] Script-fu Gimp

2011-06-08 Thread monty
Hi I want to apply curve to number of images using script-fu in Gimp. Can you please help. -- monty (via gimpusers.com) ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

[Gimp-user] script-fu copy image and paste as layer into different image

2011-04-25 Thread floditbob2
>Hello, >I'm trying to write a script to batch proccess a number of files. I want the >script to open file a*.png, convert black color to alpha and paste image >b*.png on top of a*.png (both are the same size). The script converts black to >alpha, but it doesn't paste image. >... >... >

[Gimp-user] script-fu copy image and paste as layer into different image

2011-03-18 Thread gumaster
Hello, I'm trying to write a script to batch proccess a number of files. I want the script to open file a*.png, convert black color to alpha and paste image b*.png on top of a*.png (both are the same size). The script converts black to alpha, but it doesn't paste image. (define (batch-alpha-p

Re: [Gimp-user] script-fu-menu-register with space in folder name?

2010-10-31 Thread Alan Campbell
On Mon Oct 25 10:03:38 PDT 2010 Sven Neumann said: > > but if I try, subfolder "Joint Scripts" doens't appear > > Any way to get a space in a subfolder name? > Are you sure? I wonder how all the scripts in the "Alpha to Logo" > folder register themselves then. Perhaps you should register the >

[Gimp-user] Script-Fu "Illegal Function" Error

2010-10-29 Thread Aitchbee
>Try getting rid of the double parenthesis around the >gimp-image-get-active-vectors. >-Rob A> Bingo! You are right. You have my undying gratitude. I played with this thing so long I don't know how the extra parenthesis got there. This kind of structure is new to me. I first learned programming

Re: [Gimp-user] Script-Fu "Illegal Function" Error

2010-10-28 Thread Rob Antonishen
Try getting rid of the double parenthesis around the gimp-image-get-active-vectors. -Rob A> ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

[Gimp-user] Script-Fu "Illegal Function" Error

2010-10-28 Thread Aitchbee
I am getting an “Illegal Function” error message for a Script-Fu script I wrote. Can anyone tell me what I am doing wrong? The script is supposed to make a selection from the active path (vector), fill the selection with the foreground color and stroke the selection with the active brush. I ha

Re: [Gimp-user] script-fu-menu-register with space in folder name?

2010-10-25 Thread Sven Neumann
On Sun, 2010-10-24 at 20:24 +, Alan Campbell wrote: > I'd like to do > > (script-fu-menu-register "some_func" "/File/Create/Joint > Scripts") > > but if I try, subfolder "Joint Scripts" doens;t appear > > (script-fu-menu-register "some_func" > "/File/Create/JointScripts") > > works fine.

[Gimp-user] script-fu-menu-register with space in folder name?

2010-10-24 Thread Alan Campbell
I'd like to do (script-fu-menu-register "some_func" "/File/Create/Joint Scripts") but if I try, subfolder "Joint Scripts" doens;t appear (script-fu-menu-register "some_func" "/File/Create/JointScripts") works fine. Any way to get a space in a subfolder name? gimp-plugin-menu-branch-register

[Gimp-user] Script-fu script defaults

2010-10-05 Thread John Coppens
Hello people. A couple of years ago, I wrote a script to add titles to images. I offer the options of position, color and combination mode in the dialog. I use this script quite often. I never found if it is possible to assign default values to the variables, eg. set the color dialog by default t

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-04 Thread Alan Campbell
On 4 Oct 2010 at 10:21:16 PDT saulgoode at flashingtwelve.brickfilms.com wrote: > It is not a problem with the branch register command not being > processed, but that branch registration seems to require that > plug-in be associated with it (see > 'plugin_menu_branch_register_invoker()' in > app

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-04 Thread saulgoode
Quoting Alan Campbell : > >> > Always got the "Woodrat" folder under File | Create menu, no >> > shortcut key indicated. > > On 3 Oct 2010 at 11:17:05, Sven Neumann wrote: > >> I am pretty sure that it theoretically should work this way. After >> all the Script-Fu extension itself creates sub-menu

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell
> > Always got the "Woodrat" folder under File | Create menu, no > > shortcut key indicated. On 3 Oct 2010 at 11:17:05, Sven Neumann wrote: > I am pretty sure that it theoretically should work this way. After > all the Script-Fu extension itself creates sub-menus this way and > those sub-menus d

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Sven Neumann
On Sun, 2010-10-03 at 13:42 +, Alan Campbell wrote: > > You need to explicitly create the submenu using > > gimp-plugin-menu-branch-register. This procedure should accept > > mnemonics marked with an underscore. > > > > Tried > (gimp-plugin-menu-branch-register "/File/Create" "W_oodrat") > (

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell
Hi Sven, On 3 Oct 2010 at 14:19, Sven Neumann wrote: > On Sun, 2010-10-03 at 12:59 +, Alan Campbell wrote: > > One of uses of an underscore is to pick out the shortcut character > > in a menu item: > > > > (script-fu-register "wrdhb_create_half_blind_dovetail" > > "_Half blind dovetail.

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Sven Neumann
On Sun, 2010-10-03 at 12:59 +, Alan Campbell wrote: > One of uses of an underscore is to pick out the shortcut character in > a menu item: > > (script-fu-register "wrdhb_create_half_blind_dovetail" > "_Half blind dovetail..." ;menu label > "Create Template for Half blind Dovetail" > .

[Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell
One of uses of an underscore is to pick out the shortcut character in a menu item: (script-fu-register "wrdhb_create_half_blind_dovetail" "_Half blind dovetail..." ;menu label "Create Template for Half blind Dovetail" ) There also appears to be (script-fu-register "wrdhb_create_ha

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-12 Thread saulgoode
Quoting Alan Campbell : >> That's really an abuse of the gimprc though. > > So it's really only meant for GIMP and GIMP plugin settings? I agree with Sven that using gimprc for this purpose is inappropriate. > Also it looks like once I've called gimp-gimprc-set, no way to remove > expunge evil d

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-11 Thread Alan Campbell
On Sat, 2010-09-11 at 16:53 +, Alan Campbell wrote: > On 11 Sep 2010 at 12:26, Sven Neumann wrote: > > > In Script-Fu it's "gimp-gimprc-set". Works, ta. > That's really an abuse of the gimprc though. So it's really only meant for GIMP and GIMP plugin settings? Also it looks like once I'

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-11 Thread Sven Neumann
On Sat, 2010-09-11 at 16:53 +, Alan Campbell wrote: > On 10 Sep 2010 at 9:35, Rob Antonishen wrote: > > > > https://bugzilla.gnome.org/show_bug.cgi?id=572865 > > Thanks, got that working. > > > Instead of parasites consider using gimp_gimprc_set() and > > gimp_gimprc_query() which don't seem

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-11 Thread Alan Campbell
On 10 Sep 2010 at 9:35, Rob Antonishen wrote: Ta for reply. > use the > > https://bugzilla.gnome.org/show_bug.cgi?id=572865 Thanks, got that working. > Instead of parasites consider using gimp_gimprc_set() and > gimp_gimprc_query() which don't seem to have this issue. In Script-fu console

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-10 Thread saulgoode
Quoting Alan Campbell : > parasites are just what I need. Can't find much about them. > > (list "WRF_BIT_WIDTH" 1 (number->string bit-width))) > > First list member: parasite ID string. > > What's the second list member? Flags, I understand from one search > result I found. Used? To my knowled

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-10 Thread Alan Campbell
Hi Saul, Many thanks for instant help. > > I'm trying to figure ut if there's any way that choices made by > > user in dialog widgets can be remembered and used as values > > of those widgets next time dialog runs. > That is precisely how script dialogs currently behave; the last > used value

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-05 Thread saulgoode
Quoting Alan Campbell : > Hi, > > I'm trying to figure ut if there's any way that choices made by a > user in dialog widgets can be remembered and used as values of those > widgets next time dialog runs. That is precisely how script dialogs currently behave; the last used values are presented.

[Gimp-user] script-fu: saving dialog choices

2010-09-05 Thread Alan Campbell
Hi, I'm trying to figure ut if there's any way that choices made by a user in dialog widgets can be remembered and used as values of those widgets next time dialog runs. In most other scripting languages I'd save choices to somethng like an ini file, and retrieve stored ini file values before

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread saulgoode
Quoting Dillon : > Sorry for being unclear - when I said "this line" I was referring to: > > (set! num-layers (car (gimp-image-get-layers newimage))) > > > On Sat, Jul 24, 2010 at 9:50 AM, Dillon wrote: >> Here is the code: >> : >> : >> (set! newimage (car (gimp-file-load RUN-NONINTERACTIVE file

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread Dillon
leparts)) >>> (set! xcfname (string-append (unbreakupstr fileparts ".") ".xcf")) >>> (gimp-message "The new filename will be: ") >>> (gimp-message xcfname) >>> ; set image from the file, and then get the first layer and set it to >>> newimage >>&g

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread Dillon
gt;> (set! newimage (car (gimp-file-load RUN-NONINTERACTIVE filename >> filename))) >> (set! num-layers (car (gimp-image-get-layers newimage))) >> (set! layerIDs (cadr (gimp-image-get-layers newimage))) >> >> ; set drawable to the newimage >> (gimp-message &qu

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread Dillon
) > > ; set drawable to the newimage > (gimp-message "Setting the Drawable.") > > (set! drawable (car (gimp-image-flatten newimage))) > > > ; save the drawable from newimage as xcfname > (gimp-message "Saving the new file.") > (gimp-file-sav

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread Kevin Cozens
Dillon wrote: > (set! num-layers (car (gimp-image-get-layers newimage))) > (set! layerIDs (cadr (gimp-image-get-layers newimage))) What error messages do you get when the above lines are included? > (define (batch-save-as-xcf pattern) > (let* ( > (filelist (cadr (file-glob pattern 1))) >

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-23 Thread Dillon
newimage))) ; save the drawable from newimage as xcfname (gimp-message "Saving the new file.") (gimp-file-save RUN-NONINTERACTIVE newimage drawable xcfname xcfname) (set! filelist (cdr filelist)) ) ) ) Date: Sun, 06 Jun 2010 17:46:15 -0400 From: saulgo...@flash

Re: [Gimp-user] script-fu-round-corners

2010-06-15 Thread Rob Antonishen
> Hi List, > > I thought I might tie off this thread by indicating that I now have a working > script.  It appears the definition for "script-fu-round-corners" in script-fu > console is in error in that the "run-mode" variable indicated is not > reflected in the definition of the script.  I remo

Re: [Gimp-user] script-fu-round-corners

2010-06-15 Thread John Dey
Hi List, I thought I might tie off this thread by indicating that I now have a working script. It appears the definition for "script-fu-round-corners" in script-fu console is in error in that the "run-mode" variable indicated is not reflected in the definition of the script. I removed the RUN

[Gimp-user] script-fu-round-corners

2010-06-15 Thread John Dey
Hi List, I circulated a script yesterday for rounding corners using the above listed script. I got two suggestions for changes but neither resulting in a working script. Is there a list member that would be willing to send me a small working script using "script-fu-round-corners" so I can lea

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-07 Thread Dillon
That's the conclusion I came to as well. I am still figuring out how to do raw CR2 files, but the script below does handle multi-page TIFFs just fine. It's a PowerShell (Windows) wrapper around ImageMagick. Not elegant, and the formatting on blogger kinda sucks (I'll fix that someday), but here

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-07 Thread Deniz Dogan
2010/6/6 Dillon : > Someone off-list suggested ImageMagick.  Some googling shows this command: > convert mulitple.tif single%d.tif > > I think this will create multiple files, each representing a page from the > tif. > Since I planned on wrapping all my script-fu in PowerShell, I could insert a > c

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread saulgoode
Quoting Dillon : > The reason I'm writing my own script-fu, rather than using Daves Batch > Processor, is that my TIF files are multi-page, and when I load the image > and flatten it to a drawable, I end up with both pages flattened into one > drawable. I only want one of the pages (I think the f

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread Dillon
Someone off-list suggested ImageMagick. Some googling shows this command: convert mulitple.tif single%d.tif I think this will create multiple files, each representing a page from the tif. Since I planned on wrapping all my script-fu in PowerShell, I could insert a call to imagemagick to create

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread Deniz Dogan
2010/6/6 Dillon : > Thanks Saulgoode, that worked!  It solved both of my problems.  Interesting. >  I'll have to puzzle through why it worked later, but now I'm on to my next > challenge. > The reason I'm writing my own script-fu, rather than using Daves Batch > Processor, is that my TIF files are

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread Dillon
Thanks Saulgoode, that worked! It solved both of my problems. Interesting. I'll have to puzzle through why it worked later, but now I'm on to my next challenge. The reason I'm writing my own script-fu, rather than using Daves Batch Processor, is that my TIF files are multi-page, and when I load

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread saulgoode
Quoting Dillon : > I am trying to perform batch conversions of images, including scanned tifs > (multi-page), JPGs, and .CR2 raw files. > > My workflow is as follows: > 1) scan/acquire "raw" images to disk > 2) batch convert to XCF > 3) hand-edit selected XCFs > 4) batch convert to flattened JPG/P

[Gimp-user] Script-Fu for batch image conversion

2010-06-05 Thread Dillon
Hello folks, I am trying to perform batch conversions of images, including scanned tifs (multi-page), JPGs, and .CR2 raw files. My workflow is as follows: 1) scan/acquire "raw" images to disk 2) batch convert to XCF 3) hand-edit selected XCFs 4) batch convert to flattened JPG/PNG/etc I am workin

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-25 Thread Thomas DuBuisson
> I don't like how you nest the various let*-statements. That makes the > code hard to track. > > It would be better if you have some dummy variable declarations in your > outer let*-statement and then use set! to redefine the values. > > Also note that the use of "25" for the mode is not nice, you

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-25 Thread Simon Budig
Thomas DuBuisson (thomas.dubuis...@gmail.com) wrote: > - CODE -- (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "image.png" "image.png"))) (layer0 (car (gimp-image-get-active-layer image))) ) (let* ((layer1 (car (gimp-image-flatten

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
Update 2: 1) Exceptions The macro (not sure of the underlying primitives) "catch" will catch errors. The web page didn't even call them exceptions, which explains why I/google didn't find it quickly. Ex: when converting an image that might already be RGB to RGB: (catch (gimp-image-convert

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
Update: 1) The question regarding exceptions remains - there are too many corner cases, mostly undocumented, so it would be nice to ignore them silently. 2) I see my fix was almost right but I forgot to take the head of the list: "(car (gimp-image-get-active-drawable image))" is what I want, not

[Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
Hello list, I am planning on evolving image transformations using an AST of the script-fu langauge and generating random (but syntatically correct) scripts. I would like to avoid programming in hundreds of corner cases into the system and thus have the following questions: 1) Script-fu throws ex

Re: [Gimp-user] Script-Fu vs GIMP UI

2009-09-15 Thread Ilya Zakharevich
On 2009-09-15, jolie S wrote: >>??? Obviously, the same as when I click repeatedly along the path... >>Imagine "select color" with "add to selection" and small threshold... >>E.g., select colors close to any one in the path. > You say you want to select a color close to any one in the path, bu

[Gimp-user] Script-Fu vs GIMP UI

2009-09-15 Thread jolie S
> >??? Obviously, the same as when I click repeatedly along the path... >Imagine "select color" with "add to selection" and small threshold... if we >> know what it is that you are trying to accomplish. > >E.g., select colors close to any one in the path. > >Thanks, >Ilya > > I'm equally con

Re: [Gimp-user] Script-Fu vs GIMP UI

2009-09-14 Thread Ilya Zakharevich
On 2009-09-14, Jolie S wrote: > What kind of outcome are you expecting to get when stroking a path with a > selection tool? ??? Obviously, the same as when I click repeatedly along the path... Imagine "select color" with "add to selection" and small threshold... > I can't think of why you want

Re: [Gimp-user] Script-Fu vs GIMP UI

2009-09-14 Thread Sven Neumann
Hi, On Sun, 2009-09-13 at 23:42 +, Ilya Zakharevich wrote: > > I am afraid there is no way to do this for tools like 'color select' or > > 'magic wand'. Tools are a user interface thing and the PDB explicitly > > doesn't give access to the user interface parts of GIMP. > > This sentence does

[Gimp-user] Script-Fu vs GIMP UI

2009-09-13 Thread Jolie S
What kind of outcome are you expecting to get when stroking a path with a selection tool? I can't think of why you want to do this? Maybe someone can help you if we know what it is that you are trying to accomplish. -- jolie (via www.gimpusers.com) __

Re: [Gimp-user] Script-Fu vs GIMP UI

2009-09-13 Thread Ilya Zakharevich
On 2009-09-13, Sven Neumann wrote: >> I want to stroke the path with the current tool, with all the >> parameters as selected in the tool options. I do not think I can do >> it with the PATHs right-mouse-click menu, can I? >> (What I see are only choices of "Paint" tools. What I want is "Select

Re: [Gimp-user] Script fu may call Gegl operation ?

2009-09-12 Thread Sven Neumann
Hi, On Wed, 2009-09-09 at 06:33 +0200, photocomix wrote: > Something as > > duplicate layer > Apply Gegl operation/c2g on the dup > Change layer mode of dup in Value > > will be possible with script fu ? Not yet, but it is a nice idea. Someone would have to make up a patch that allows to call a

[Gimp-user] Script fu may call Gegl operation ?

2009-09-08 Thread photocomix
Something as duplicate layer Apply Gegl operation/c2g on the dup Change layer mode of dup in Value will be possible with script fu ? >From the default of gegl operation /c2g i will need only to change the setting for "samples" (from 3 to 6 or more ) would be possible ? -- photocomix (via www.

[Gimp-user] script-fu "rand" function

2009-03-22 Thread Catherine Jones
Kevin Cozens wrote: >If you want to change the seed each time you start GIMP, >add '(srand (realtime))' before you call '(rand)'. Thanks. That solved my problem. -- Catherine ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.

Re: [Gimp-user] script-fu "rand" function

2009-03-21 Thread Kevin Cozens
Catherine Jones wrote: > gimp -i -b '( ...)' -b '(gimp-quit 0)' > > always does the same thing (assuming the same variable inputs). Of course it would. You are starting a fresh copy of GIMP each time. If you want to change the seed each time you start GIMP, add '(srand (realtime))' before you

[Gimp-user] script-fu "rand" function

2009-03-21 Thread Catherine Jones
Hello, When I use the "rand" function in a script-fu script that I run non-interactively from the command line, I get the exact same result every time. In other words, the command gimp -i -b '( ...)' -b '(gimp-quit 0)' always does the same thing (assuming the same variable inputs). This is no

Re: [Gimp-user] Script-fu for multi-language

2009-03-01 Thread Tetsuya Yuasa
>See also the gettext package documentation for increase your knowledge >on the subject. Thanks a lot :) I'll see about it. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: [Gimp-user] Script-fu for multi-language

2009-02-27 Thread Marco Ciampa
On Fri, Feb 27, 2009 at 07:58:32PM +0100, Tetsuya Yuasa wrote: > >A list of the translation teams for various languages is available at > >http://l10n.gnome.org/teams/ . If you contact the appropriate team for > >your language, they should be able to provide much better guidance. > > Thanks fo

Re: [Gimp-user] Script-fu for multi-language

2009-02-27 Thread Tetsuya Yuasa
>A list of the translation teams for various languages is available at >http://l10n.gnome.org/teams/ . If you contact the appropriate team for >your language, they should be able to provide much better guidance. Thanks for your help! Your advise helped me so much. :) _

Re: [Gimp-user] Script-fu for multi-language

2009-02-27 Thread saulgoode
Quoting Tetsuya Yuasa : > I've writed some script-fu and I want to know how can I rewrite it for > multi-language, exactly said, for two-language. > > Of course I can write it by separated files, but it bothered me when I > need to rewrite the script. > > Is there any document about it? There are

[Gimp-user] Script-fu for multi-language

2009-02-26 Thread Tetsuya Yuasa
Hi, I've writed some script-fu and I want to know how can I rewrite it for multi-language, exactly said, for two-language. Of course I can write it by separated files, but it bothered me when I need to rewrite the script. Is there any document about it? I would appreciate any your help. _

Re: [Gimp-user] Script-Fu

2009-02-19 Thread Frantz de Germain
Le Wed, 18 Feb 2009 12:33:36 -0500 saulgo...@flashingtwelve.brickfilms.com écrivait: > You still can (and will) use 'set!' in your scripts; but you need to > create the variable first. Previously, the variable would be created > automatically if it did not exist. Allright, thanks for the info

Re: [Gimp-user] Script-Fu

2009-02-18 Thread saulgoode
I did not properly present the part about pasting the recomposed image back into the original layer. You will want to set the offsets of the pasted layer so that they match the original active layer ('drawable') and to also anchor your pasted layer. The code should be similar to the followi

Re: [Gimp-user] Script-Fu

2009-02-18 Thread Claus Cyrny
Hi Saul, saulgo...@flashingtwelve.brickfilms.com wrote: > The code I attached to my previous post had a mistake on line #24 > which should have been: > (set! layer (car (gimp-image-get-active-layer value-image))) > > I also should have used 'hue-image' and 'sat-image' when I later > called 'pl

Re: [Gimp-user] Script-Fu

2009-02-18 Thread saulgoode
The code I attached to my previous post had a mistake on line #24 which should have been: (set! layer (car (gimp-image-get-active-layer value-image))) I also should have used 'hue-image' and 'sat-image' when I later called 'plug-in-compose' (the code I had functioned fine, it just might be a

Re: [Gimp-user] Script-Fu

2009-02-18 Thread Frantz de Germain
Le Wed, 18 Feb 2009 06:51:44 -0500 saulgo...@flashingtwelve.brickfilms.com écrivait: > Quoting Claus Cyrny : > > > I'm currently trying to write a Script-Fu (actually > > my first one), but although I found several online > > tutorials on how to go about, I'm still not sure of > > the proper synt

Re: [Gimp-user] Script-Fu

2009-02-18 Thread saulgoode
Quoting Claus Cyrny : I'm currently trying to write a Script-Fu (actually my first one), but although I found several online tutorials on how to go about, I'm still not sure of the proper syntax for most of the steps I would like the script to perform. I've included an attachment (plain text)

Re: [Gimp-user] Script-Fu

2009-02-17 Thread David Gowers
Hello! On Wed, Feb 18, 2009 at 2:19 PM, Claus Cyrny wrote: > Hi, > > I'm currently trying to write a Script-Fu (actually > my first one), but although I found several online > tutorials on how to go about, I'm still not sure of > the proper syntax for most of the steps I would like > the script t

[Gimp-user] Script-Fu

2009-02-17 Thread Claus Cyrny
Hi, I'm currently trying to write a Script-Fu (actually my first one), but although I found several online tutorials on how to go about, I'm still not sure of the proper syntax for most of the steps I would like the script to perform. This is basically an advanced 'Unsharp Mask' I have been doing

[Gimp-user] Script-fu changes?

2008-12-03 Thread John Coppens
Hello people. I wrote - quite a while ago - a script to make thumbnails, and modified it for 2.4.x. When I tried to run it in GIMP 2.6.3, it did work correctly, but the screen doesn't update as it should. When the image is scaled, the background doesn't clear, and the scaled image is shown in the

Re: [Gimp-user] script-fu code to load pdf with set resolution

2008-10-21 Thread Sven Neumann
Hi, On Wed, 2008-10-22 at 01:40 +0200, Ash C. wrote: > I am wanting to write a script that will load a pdf with a specified > resolution and then save it as a jpeg. > > When I open the pdf document manually (via the GUI). I am greeted with the > "Import from PDF" window, which allows me to set th

[Gimp-user] script-fu code to load pdf with set resolution

2008-10-21 Thread Ash C.
>Quoting "Ash C." <[EMAIL PROTECTED]>: > >> I am wanting to write a script that will load a pdf with a specified >> resolution and then save it as a jpeg. >> >> ... When I alter the size of the image using 'gimp-image-resize' it seems >> to keep the image at the same size but sets the extra area to

Re: [Gimp-user] script-fu code to load pdf with set resolution

2008-10-21 Thread saulgoode
Quoting "Ash C." <[EMAIL PROTECTED]>: > I am wanting to write a script that will load a pdf with a specified > resolution and then save it as a jpeg. > > ... When I alter the size of the image using 'gimp-image-resize' it seems > to keep the image at the same size but sets the extra area to transp

[Gimp-user] script-fu code to load pdf with set resolution

2008-10-21 Thread Ash C.
I am wanting to write a script that will load a pdf with a specified resolution and then save it as a jpeg. When I open the pdf document manually (via the GUI). I am greeted with the "Import from PDF" window, which allows me to set the resolution of the image which then alters the width and height

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-19 Thread Alec Burgess
Alec Burgess wrote: Since we've had all these messages about this ... I thought I'd ask: Shouldn't the so-called fix I made, adding a dummy variable with a value but leaving the remaining two variables (image) and (buffer) uninitialized still have been a syntax error? I was surprised that it

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-19 Thread Kevin Cozens
Alec Burgess wrote: > Thanks ... I think :-) found the example and perused the linked PDF > (section 4.2.2. Binding constructs) with out much if any understanding. > > I changed: > (define (save-layer orig-image layer name) > (let* ( > (image) > (buffer) > ) > > to: >

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-19 Thread Sven Neumann
Hi, On Sat, 2008-10-18 at 21:46 -0400, Alec Burgess wrote: > > This is explained in the release notes for GIMP 2.6: > > http://gimp.org/release-notes/gimp-2.6.html > > Thanks ... I think :-) found the example and perused the linked PDF > (section 4.2.2. Binding constructs) with out much if any >

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-18 Thread Alec Burgess
Sven Neumann ([EMAIL PROTECTED]) wrote (in part) (on 2008-10-18 at 18:45): On Sat, 2008-10-18 at 18:19 -0400, Alec Burgess wrote: > > Error while executing script-fu-save-anim-layers: > > Error: Bad syntax of binding spec in let* : ((image) (buffer)) > > > > I think this is due to changes

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-18 Thread saulgoode
Script has been updated. Quoting Alec Burgess <[EMAIL PROTECTED]>: > Script: > http://flashingtwelve.brickfilms.com/GIMP/Scripts/save-anim-layers.scm > (apparently by Saul Goode 3/11/2008) > > This script was mentioned in bugzilla: > Bug 556548 – Layer extraction script > http://bugzilla.gnome.or

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-18 Thread Sven Neumann
Hi, On Sat, 2008-10-18 at 18:19 -0400, Alec Burgess wrote: > Error while executing script-fu-save-anim-layers: > Error: Bad syntax of binding spec in let* : ((image) (buffer)) > > I think this is due to changes in script-fu (?) but don't know enough > about script-fu to correct it. Could someon

[Gimp-user] script-fu-save-anim-layers

2008-10-18 Thread Alec Burgess
Script: http://flashingtwelve.brickfilms.com/GIMP/Scripts/save-anim-layers.scm (apparently by Saul Goode 3/11/2008) This script was mentioned in bugzilla: Bug 556548 – Layer extraction script http://bugzilla.gnome.org/show_bug.cgi?id=556548 Attempts to execute it result in: Error while executi

Re: [Gimp-user] Script-fu plugin

2008-10-16 Thread Adonj Adonj
Thank you so much Saul, that works great!!!> Date: Wed, 15 Oct 2008 18:15:05 -0400> From: [EMAIL PROTECTED]> To: Gimp-user@lists.XCF.Berkeley.EDU> Subject: [Gimp-user] Script-fu plugin> > Quoting Adonj Adonj <[EMAIL PROTECTED]>:> > > I updated my Gimp program

Re: [Gimp-user] Script Fu error

2008-10-15 Thread D.Jones (aka) Capnhud
Thanks that did the trick. --- On Wed, 10/15/08, Andreas Waechter <[EMAIL PROTECTED]> wrote: > From: Andreas Waechter <[EMAIL PROTECTED]> > Subject: Re: [Gimp-user] Script Fu error > To: [EMAIL PROTECTED] > Cc: "Gimp Group" > Date: Wednesday, October 15,

[Gimp-user] Script-fu plugin

2008-10-15 Thread saulgoode
Quoting Adonj Adonj <[EMAIL PROTECTED]>: > I updated my Gimp program from version 2.4.7 to 2.6.0-i686. > The Script-fu plugin copyToAllLayers.scm gave an error, and a Gimp Message: > "Plug-In 'Copy mask' left image undo in inconsistent state, >closing open undogroups". I wondered if you have

Re: [Gimp-user] Script Fu error

2008-10-15 Thread Andreas Waechter
D.Jones (aka) Capnhud wrote: > Error while executing script-fu-quick-sketch2: > Error: eval: unbound variable: script-fu-quick-sketch2 here is a 2 at the end > (define (script-fu-quick-sketch theImage here is NO 2 at the end > (script-fu-register "script-fu-quick-sketch2" here is a 2 at th

[Gimp-user] Script Fu error

2008-10-15 Thread D.Jones (aka) Capnhud
This scrip used to work in gimp 2.4.7 but when I try to execute this script 2.6.1 I recieve this message but I am not sure what to change in order to make it work again: Error while executing script-fu-quick-sketch2: Error: eval: unbound variable: script-fu-quick-sketch2 ; The GIMP -- an image

[Gimp-user] Script-fu plugin

2008-10-09 Thread Adonj Adonj
I updated my Gimp program from version 2.4.7 to 2.6.0-i686. The Script-fu plugin copyToAllLayers.scm gave an error, and a Gimp Message: "Plug-In 'Copy mask' left image undo in inconsistent state, closing open undogroups". I wondered if you have a correction for the code.Very much appreciated.

Re: [Gimp-user] script-fu plugin

2008-09-30 Thread Bernd Weber
kground image (David Gowers) >6. Re: script-fu plugin ([EMAIL PROTECTED]) >7. Re: Gimp-user Digest, Vol 72, Issue 22 (Mike W) > > > -------------- > > Message: 1 > Date: Sun, 28 Sep 2008 00:03:52 -0400 > From: Adonj Adonj <[EMAIL

[Gimp-user] Script-fu plugin

2008-09-28 Thread Adonj Adonj
That was terrific, Saul, thanks a lot! Adonj _ ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: [Gimp-user] Script-fu plugin

2008-09-28 Thread saulgoode
Quoting Adonj Adonj <[EMAIL PROTECTED]>: > I wondered if you knew of a script that would also APPLY the copied > layers as you mention. Edit the script to add the following code: (set! layers (visible-layers image)) (while (pair? layers) (gimp-layer-remove-mask (car layers) M

[Gimp-user] Script-fu plugin

2008-09-28 Thread Adonj Adonj
Thank you Saul, that worked perfectly! With regards to your message at: http://72.14.205.104/search?q=cache:7GovFRKtKToJ:lists.xcf.berkeley.edu/lists/gimp-user/2007-January/009388.html+plugin+to+copy+mask+to+all+layers+then+apply&hl=en&ct=clnk&cd=2&gl=ca You say: > You can achieve the same resul

Re: [Gimp-user] script-fu plugin

2008-09-28 Thread saulgoode
Quoting Adonj Adonj <[EMAIL PROTECTED]>: > > > I'm using gimp2.4.7 in windows XP. I copied a script-fu plugin I > found to my C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, which > should > copy a layer mask to multiple layers or apply a layer mask to > multiple layers. > I get an error

[Gimp-user] Script-fu

2008-09-28 Thread Adonj Adonj
You're absolutely right Peter, my mistake, I meant the script folder C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts.That's where it resides.The new script-fu tab does appear correctly in my image window, however the error I described is present when I click on the tab. Adonj __

Re: [Gimp-user] script-fu plugin

2008-09-28 Thread peter kostov
Adonj Adonj wrote: > > I'm using gimp2.4.7 in windows XP. I copied a script-fu plugin I found to my > C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, which should > copy a layer mask to multiple layers or apply a layer mask to multiple > layers. > I get an error each time I make an attempt to

[Gimp-user] script-fu plugin

2008-09-27 Thread Adonj Adonj
I'm using gimp2.4.7 in windows XP. I copied a script-fu plugin I found to my C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, which should copy a layer mask to multiple layers or apply a layer mask to multiple layers. I get an error each time I make an attempt to use it, which states: "Error: c

Re: [Gimp-user] script-fu batch file

2008-09-25 Thread Sven Neumann
Hi, On Thu, 2008-09-25 at 09:14 +0200, Pierre Habraken wrote: > I am a newbie to Gimp. > I need to execute Gimp scripts from files which do not reside in > ~/.gimp/scripts, for instance with the following invocation example: > gimp -i -b $PROJECTDIR/my-script.scm -b 'gimp-quit 0) > where $PROJEC

[Gimp-user] script-fu batch file

2008-09-25 Thread Pierre Habraken
Hello, I am a newbie to Gimp. I need to execute Gimp scripts from files which do not reside in ~/.gimp/scripts, for instance with the following invocation example: gimp -i -b $PROJECTDIR/my-script.scm -b 'gimp-quit 0) where $PROJECTDIR is the path to the script my-script.scm. I understand that t

Re: [Gimp-user] Script-Fu

2008-05-18 Thread Xavier Mas
El Saturday 17 May 2008 23:58:17 Kevin Cozens va escriure: > Xavier Mas wrote: > > I need to program some batch actions using Scheme or Perl in GIMP but am > > not able to see the scripts once they are registered. Scripts are well > > writed, are example taken from GIMP manual, and I change permiss

  1   2   3   >