Re: [Gimp-user] Another question about batch processing in GIMP...

2009-03-29 Thread Catherine Jones
There's also an example (using plug-in-unsharp-mask instead of
plug-in-lens-distortion) of applying applying a filter to multiple files
in batch mode in the online documentation.

Look for the section headed Processing several files at

http://www.gimp.org/tutorials/Basic_Batch/ (or just hunt on that page
for file-glob).

It's a complete example; you can copy it (substituting the lens
distortion filter for the unsharp mask filter) without really knowing
Scheme.

Catherine

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[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.Berkeley.EDU/mailman/listinfo/gimp-user


[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 '(script-name var 1 var2 ...)' -b '(gimp-quit 0)'

always does the same thing (assuming the same variable inputs).

This is not the behavior I want. I'd like to be able to re-seed the
random number generator so as to get randomly different results. Is this
possible with script-fu? Thanks... Catherine

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user