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 >

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

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.

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" > .

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.

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

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

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

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

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

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

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

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

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

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

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

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

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 from version 2.4.7 to 2.6.0-i686.>

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,

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

Re: [Gimp-user] script-fu plugin

2008-09-30 Thread Bernd Weber
py-mask-to-layers" > "/Script-Fu/_Copy mask" > "Copy the mask from the current layer to all visible layers" > "Saul Goode" > "Saul Goode" > "6/14/2006" > "" > SF-IMAGE"Image"0 > SF-DRAWAB

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

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

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

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

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

Re: [Gimp-user] Script-Fu

2008-05-17 Thread Kevin Cozens
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 permissions on the files as > they became executables, but still can't

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-17 Thread Jonathan Dearborn
x27;s done. Thanks again, Jonny D > From: [EMAIL PROTECTED] > To: gimp-user@lists.xcf.berkeley.edu > Subject: Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals > Date: Fri, 16 May 2008 18:31:20 +0200 > CC: [EMAIL PROTECTED] > > Hi, > > > I tried using Emacs,

Re: [Gimp-user] Script-Fu

2008-05-17 Thread Sven Neumann
Hi, On Sat, 2008-05-17 at 14:37 +0200, 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 permissions on the files as > t

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-16 Thread Torsten Neuer
Hi, > I tried using Emacs, but changing the encoding didn't affect anything. Just loading the file, changing the encoding and saving it again won't do anything. The encoding switches are meant for newly entered text. That means that you will have to re-enter the characters with the UTF-8 enco

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-16 Thread Jonathan Dearborn
must check the extended ASCII box. I tried using Emacs, but changing the encoding didn't affect anything. Thanks, Jonny D > From: [EMAIL PROTECTED] > To: gimp-user@lists.xcf.berkeley.edu > Subject: Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals > Date: Thu, 15 May 2

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-15 Thread Torsten Neuer
Hi, > Do you mean just type them in? Yes. > That isn't working for me. Wouldn't switching the encoding affect the whole > file instead of just a particular string? That should do no harm as Gimp is doing about everything in UTF-8 internally. Plus, any characters that are relevant to Scheme sy

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-15 Thread Sven Neumann
Hi, just use a proper editor. Emacs is available for free and it supports UTF-8 and syntax highlighting for the Scheme language. Sven ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-use

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-14 Thread Jonathan Dearborn
seen the documentation to back it up. Is there another way that you know of? Thanks for your help, Jonny D > From: [EMAIL PROTECTED] > To: gimp-user@lists.xcf.berkeley.edu > Date: Wed, 14 May 2008 16:28:25 +0200 > Subject: Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals > &

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-14 Thread Torsten Neuer
Hello, > I've been having trouble finding how to encode UTF-8 special characters > into a string literal in Script-fu. Could someone provide an example of > how to hard-code international characters into a string? The simplest and easiest way is to use a text editor that is capable of switching

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-07 Thread Manish Singh
On Mon, Jan 07, 2008 at 07:30:22PM +, Martin Bradley wrote: > I don't want to try to get your code working because I know nothing > about Python, I know it is a good language. The other reason I'm not > happy using it is that it adds another layer of software to a solution > that should work o

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-07 Thread Martin Bradley
Hi Joao, > May I suugest this code instead of the above? : > > from gimpfu import * > def python_fu_create_thumb(filename): > img = pdb.gimp_file_load(filename, filename) > pdb.gimp_file_save_thumbnail(img, filename) > > register ( > "python-fuc-create-thumb", > "Create Thumbnail

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Joao S. O. Bueno
On Friday 04 January 2008 19:35, Martin Bradley wrote: > Hi Folks, > > >You have an error in your placement of ')'. > > That was because I thought set was used similar to (let ..) > > >I don't think you need the file save since you haven't changed the > > file since it was loaded. > > I have correc

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Kevin Cozens
Martin Bradley wrote: > I'd been slowly trying to learn Common Lisp and thought that Script-Fu had it. > Here is the scheme coding tutorial I was using, most likely the wrong > thing to be reading. > http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-1.html#node_toc_node_sec_4.1 Script-Fu

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Martin Bradley
Hi Folks, >You have an error in your placement of ')'. That was because I thought set was used similar to (let ..) >I don't think you need the file save since you haven't changed the file since >it was loaded. I have corrected the arguments. I saved the file first because gimp-file-save-thumbn

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Kevin Cozens
Martin Bradley wrote: > (define (script-fu-create-thumb filename) > (let* ((img 0)) > ;; car needed here because gimp functions return values as lists > (set! img (car (gimp-file-load 1 filename filename)) > (gimp-file-save img filename) > (print (gimp-file-save-thumbnail img fi

Re: [Gimp-user] Script-Fu needed: apply Auto-White-Balance on all images...

2007-12-17 Thread Kevin Cozens
[EMAIL PROTECTED] wrote: > I needed a script-fu routine that apply Auto-White-Balance on all OPENED > images... > Like the Save-All script-fu that provided by an user in this list. > > I don't wanna use outer tool, because sometimes the Auto-White-Balance > is makes wrong result. By "outer tool

Re: [Gimp-user] Script-Fu help?

2007-11-07 Thread Tobias Jakobs
On Nov 7, 2007 8:53 PM, Dave 77459 <[EMAIL PROTECTED]> wrote: > I have some scripts I am upgrading to work with 2.4. What is the best place > to find help? This list is the right place. I think the fastes way to get help is the GIMP IRC channel. If you are updating from 2.2 to 2.4 you can find he

Re: [Gimp-user] Script-fu errors after upgrade 2.2.15 => 2.4.0-rc2

2007-09-07 Thread Pere Pujal i Carabantes
El dv 07 de 09 del 2007 a les 15:19 +0200, en/na Jan Tomasek va escriure: > I seek help with migrating script-fu script from Gimp 2.2 to 2.4. > > After upgrade to 2.4.0-rc2 script stoped working, first I found problem > with (set! variable ...) syntax, I replaced that by (define variable > ...

Re: [Gimp-user] Script-fu SF-FILENAME don't show the default setting

2007-09-03 Thread Pere Pujal i Carabantes
On Wed, 2007-08-29 at 01:17 +0200, Pere Pujal i Carabantes wrote: > When using SF-FILENAME, if the file exist, the name of the file is > shown > in the button, but if the file does not exist, ie. has to be created, > there is "(none)" in the button. > > Is there a way to show the name on the butt

Re: [Gimp-user] Script-fu help

2007-05-29 Thread RalfGesellensetter
Am Montag 28 Mai 2007 21:13 schrieb ASJF: > I > have change something but I don't remember what... > Can someone help me? Don't you have a working copy? If you don't use a CVS/SVN, you might get help from diff (or kdiff3 if you use KDE). Otherwise: Thanks for sharing your script ;) _

Re: [Gimp-user] Script-fu help

2007-05-28 Thread saulgoode
Quoting ASJF <[EMAIL PROTECTED]>: > Hi everybody ! > > I have made a script to resize picture... but it doesn't work anymore, I > have change something but I don't remember what... > Can someone help me? I suspect that you are using the development version (2.3) of the GIMP and your difficulty

Re: [Gimp-user] Script-Fu error

2007-03-12 Thread Sven Neumann
Hi, On Tue, 2007-03-13 at 05:47 +0100, Stephan Hegel wrote: > However, I do think the problem itself will be a user issue even when I'm a > bit ahead at the moment and have tried the developer version already. When > you release version 2.4 (or a release candidate of it) the problem will pop > up

Re: [Gimp-user] Script-Fu error

2007-03-12 Thread Stephan Hegel
Hello Sven, Sven Neumann wrote: > Since you are using the development version, you should be subscribed to > the gimp-developer mailing-list. We haven't written a decent document > describing the changes in Script-Fu yet, but you can read about them in > the mailing-list archives. Thanks for the p

Re: [Gimp-user] Script-Fu error

2007-03-12 Thread Sven Neumann
Hi, On Mon, 2007-03-12 at 07:20 +0100, Stephan Hegel wrote: > I've tried Gimp 2.3.15 with the following script: > http://turtle.as.arizona.edu/jdsmith/exposure-blend.scm > > When launching Gimp I get the following error: > > script-fu-Warning: Error while executing > (load "/home/steve/.gim

Re: [Gimp-user] Script-Fu Question about Saving Image to Network Share

2007-03-10 Thread GSR - FR
Hi, [EMAIL PROTECTED] (2007-03-10 at 1258.19 -0500): > If saving to a network drive is not possible (such as smb://), is there > some other trick I could use to get the image over there? Mount the network drive. You can use smbmount or fusesmb, for example. Then files will appear in the main tre

Re: [Gimp-user] Script-Fu Question about Saving Image to Network Share

2007-03-10 Thread Sven Neumann
Hi, On Sat, 2007-03-10 at 12:58 -0500, Tony Freeman wrote: > If saving to a network drive is not possible (such as smb://), is there > some other trick I could use to get the image over there? GIMP 2.2 doesn't save to remote locations. You could try your luck with the 2.3 development version o

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Adam
Just tried, and set-pixel works for me using the Saul test method. Yes, I had to toggle the 'eyeball' to get it to appear - yet to try gimp-drawable-update / gimp-displays-flush. Thanks, gentlemen, for clearing my original 'image' and 'drawable' query. Welcome to SIOD, Scheme In One Def

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Adam
Thanks Kevin. Understood. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Sven Neumann
Hi, On Sun, 2007-01-14 at 12:24 -0800, Saul Goode wrote: > (define image 1) > (define layer (car (gimp-image-get-active-layer image))) > (gimp-drawable-set-pixel layer 1 1 3 (cons-array 3 'byte)) > > Note that at this point, the pixel at location x=1, y=1 has "internally" > been painted BL

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Kevin Cozens
Adam wrote: > Like in the following, which the Procedure Browser > says should be; > num_images INT32 The number of Images open > image_ids INT32ARRAY The list of images currently open > > => (gimp-image-list) > (1 #(2)#1"02") > > > so, #(2)#1"02" > is a single entry array of the imag

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Saul Goode
Sven Neuman wrote: > > On Sat, 2007-01-13 at 20:33 -0800, Saul Goode wrote: > > > Note that you will see no change in the display; even if you were to > > perform a 'gimp-displays-flush'. > > If that is true, then this is a bug and needs to be fixed. Can you > provide a test script that illustr

  1   2   >