Re: [Gimp-user] Script-fu problem -- how to load an image
On Die, 23 Mär 2004, Norbert Preining wrote: > 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" > > > "/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. I tried with calling the plugin from within gimp UI, and it works without any problem. So I don't see why it doesn't work here. Any more suggestions what I can do? Is there the possibility to make gimp output more debug stuff? Best wishes Norbert --- Norbert Preining Technische Universität Wien gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- IBSTOCK (n.) Anything used to make a noise on a corrugated iron wall or clinker-built fence by dragging it along the surface while walking past it. 'Mr Bennett thoughtfully selected a stout ibstock and left the house.' - Jane Austen, Pride and Prejudice, II. --- 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
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" > > "/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 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
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" > "/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