Re: [Gimp-user] Script-fu problem -- how to load an image
On Mon, 22 Mär 2004, Sven Neumann wrote: Here the script: (define (script-fu-fileload filein) (gimp-message-set-handler 1) ; Create an img and a layer (gimp-message 1) (gimp-message filein) (set! my-image (gimp-file-load 1 filein filein)) (gimp-message 2)) (script-fu-register script-fu-fileload Toolbox/Script-Fu/Norb/fileload Testscript Norbert Preining [EMAIL PROTECTED] Norbert Preining 2004.03.17 SF-FILENAME filein ./dummy.tiff) But I cannot get it to run without error: $ gimp --no-data -i --verbose -b '(script-fu-fileload \test.tif\) You need to pass all parameters to your script. You can use the PDB Browser to check how the script is actually registered. GIMP added a run-mode parameter for you. So please try this command-line instead: gimp --no-data -i --verbose -b '(script-fu-fileload 0 \test.tif\) Same same unfortunately: $ gimp --no-data -i --verbose -b '(script-fu-fileload 0 \test.tif\)' This is a development version of The GIMP. Debug messages may appear here. INIT: gimp_load_config Parsing '/etc/gimp/1.3/gimprc' Parsing '/home/norbert/.gimp-1.3/gimprc' gimp_composite: use=yes, verbose=no supported by gimp_composite: +mmx +sse -sse2 -3dnow -altivec -vis INIT: gimp_initialize INIT: gimp_real_initialize INIT: gimp_restore INIT: gimp_real_restore Starting extension: 'extension_script_fu' script-fu: 1 batch command: experienced an execution error. So this didn't help, hmm. Best wishes Norbert --- Norbert Preining preining AT logic DOT at Technische Universität Wien gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- VANCOUVER (n.) The technical name for one of those huge trucks with whirling brushes on the bottom used to clean streets. --- Douglas Adams, The Meaning of Liff ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[Gimp-user] Script-fu problem -- how to load an image
Hello! Gimp version 2.0pre4 (debian/sid gimp1.3 1.3.27+2.0pre4) I am trying to extend one of my scripts from an old version but cannot get gimp-file-load to work: Here the script: (define (script-fu-fileload filein) (gimp-message-set-handler 1) ; Create an img and a layer (gimp-message 1) (gimp-message filein) (set! my-image (gimp-file-load 1 filein filein)) (gimp-message 2)) (script-fu-register script-fu-fileload Toolbox/Script-Fu/Norb/fileload Testscript Norbert Preining [EMAIL PROTECTED] Norbert Preining 2004.03.17 SF-FILENAME filein ./dummy.tiff) But I cannot get it to run without error: $ gimp --no-data -i --verbose -b '(script-fu-fileload \test.tif\) This is a development version of The GIMP. Debug messages may appear here. INIT: gimp_load_config Parsing '/etc/gimp/1.3/gimprc' Parsing '/home/norbert/.gimp-1.3/gimprc' gimp_composite: use=yes, verbose=no supported by gimp_composite: +mmx +sse -sse2 -3dnow -altivec -vis INIT: gimp_initialize INIT: gimp_real_initialize INIT: gimp_restore INIT: gimp_real_restore Starting extension: 'extension_script_fu' script-fu: 1 script-fu: test2.jpg batch command: experienced an execution error. Also, when I give the full pathname to test.tif (which exits) it doesn't work. No idea why, but maybe someone can help me! Best wishes and thanks for all your help Norbert --- Norbert Preining preining AT logic DOT at Technische Universität Wien gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- QUERRIN (n.) A person that no one has ever heard of who unaccountably manages to make a living writing prefaces. --- Douglas Adams, The Meaning of Liff ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] Script-fu problem -- how to load an image
Hi, Norbert Preining [EMAIL PROTECTED] writes: I am trying to extend one of my scripts from an old version but cannot get gimp-file-load to work: Here the script: (define (script-fu-fileload filein) (gimp-message-set-handler 1) ; Create an img and a layer (gimp-message 1) (gimp-message filein) (set! my-image (gimp-file-load 1 filein filein)) (gimp-message 2)) (script-fu-register script-fu-fileload Toolbox/Script-Fu/Norb/fileload Testscript Norbert Preining [EMAIL PROTECTED] Norbert Preining 2004.03.17 SF-FILENAME filein ./dummy.tiff) But I cannot get it to run without error: $ gimp --no-data -i --verbose -b '(script-fu-fileload \test.tif\) You need to pass all parameters to your script. You can use the PDB Browser to check how the script is actually registered. GIMP added a run-mode parameter for you. So please try this command-line instead: gimp --no-data -i --verbose -b '(script-fu-fileload 0 \test.tif\) Sven ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user