On Tue, Apr 19, 2011 at 06:14:39PM +0200, houghi wrote: > I am very well aware of that. It is also hard to ask when you don't > understand what you are asking. ;-) I hate questions like "It doesn't > work!" and I hate myself for coming across like that.
OK. Status update: Things work, but not due to me. Basically I kept on searching and found scripts from others. I am able to read them and sometimes even edit them. I am still unable to make my own. Here my thoughts on how I think the process is going: >From the command line: gimp -i -c -d -b '(batch_fuzzy_border "./alyssa01.jpg" "pink" 40 TRUE 10 TRUE 50) ' -b '(gimp-quit 0)' This is read by the script with (define (batch_fuzzy_border pattern color size blurt gran shadowt shadowp) This then is passed on to the "real" script with script-fu-fuzzy-border image drawable color size blurt gran shadowt shadowp FALSE TRUE) All the rest is to open andf close the file(s). This all works, so I try to implement this for script-fu-drop-shadow where I want to use the standard settings for all. In scrpt-fu console I get the following: (script-fu-drop-shadow run-mode image drawable value value value color value toggle) As I only want to change the name, I get the following: (define (batch_drop_shadow pattern) (let* ((filelist (cadr (file-glob pattern 1)))) (while (not (null? filelist)) (let* ((filename (car filelist)) (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) (drawable (car (gimp-image-get-active-layer image))) ) (script-fu-drop-shadow image drawable 8 8 15 "black" 80.0 TRUE) (set! drawable (car (gimp-image-get-active-layer image))) (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) (gimp-image-delete image) ) (set! filelist (cdr filelist)) ) ) ) The command I use is: gimp --verbose -i -c -d -b '(batch_drop_shadow "file.png" )' -b '(gimp-quit 0)' This results in: Starting extension: 'extension-script-fu' No batch interpreter specified, using the default 'plug-in-script-fu-eval'. batch command executed successfully. The result is however not a dropshadow, although something is done, as the size is different before and after. With all the time I spend on this, it must be me that is unable to grasp how things are done and perhaps better just ask when O need a script. The end goal is to be able to do this for all of the scripts that are either included or downloaded at a later time. I am afraid this will be not for me. :-/ houghi -- Theologians can pursuade themselves of anything. Anyone who can worship a trinity and insists that his religion is a monotheism can believe anything -- just give him time to rationalize it. Robert A. Heinlein, JOB: A Comedy of Justice _______________________________________________ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user