calling a script fu script in batch mode
Message-ID:<2yRzk.3120$yS5.1534@edtnps83>
Subject:
calling a script-fu script in batch mode
Date:Tue, 16 Sep 2008 17:55:26 +0100
Hi
I am trying to call the EZImprover FX-foundry script in
a batch mode.
I was trying to model it after the simple example
Simple-Unsharp-Mask at gimp.org
Here is what I have
(define (simple-ezimprover filename)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename
filename)))
(drawable (car (gimp-image-get-active-layer image))))
(script-fu-EZImprover RUN-NONINTERACTIVE image drawable 0)
(set! drawable (car (gimp-image-get-active-layer image)))
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)))
I saved this as simple-ezimprover.scm in my gimp-2.4/scripts folder.
This is the error I get
GIMP-Error: Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu)
attempted to register the menu item "<Image>/Filters/Combine" for
procedure "script-fu-pandora-combine".
The menu label given in gimp_install_procedure() already contained a
path. To make this work, pass just the menu's label to
gimp_install_procedure().
GIMP-Error: Procedure 'gimp-layer-copy' has been called with an invalid
ID for argument 'layer'. Most likely a plug-in is trying to work on a
layer that no longer exists.
a calling error occurred while trying to run: "gimp-layer-copy"
GIMP-Warning: Plug-In '(null)' left image undo in inconsistent state,
closing open undo groups.
batch command: experienced an execution error.
I am not sure what it gimp is telling me. Any assistance would be
appreciated.
Message-ID:<87zllxa0an.fsf@gmail.com>
Subject:
Re: calling a script-fu script in batch mode
Date:Wed, 24 Sep 2008 19:03:44 +0100
Edward Redman <redman@accesswave.ca> writes: > Hi > I am trying to call the EZImprover FX-foundry script in > a batch mode. > I was trying to model it after the simple example > > Simple-Unsharp-Mask at gimp.org > > Here is what I have > > (define (simple-ezimprover filename) > (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename > filename))) > (drawable (car (gimp-image-get-active-layer image)))) > (script-fu-EZImprover RUN-NONINTERACTIVE image drawable 0) > (set! drawable (car (gimp-image-get-active-layer image))) > (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) > (gimp-image-delete image))) > > I saved this as simple-ezimprover.scm in my gimp-2.4/scripts folder. > > This is the error I get > > GIMP-Error: Plug-in "script-fu" > (/usr/lib/gimp/2.0/plug-ins/script-fu) > attempted to register the menu item "<Image>/Filters/Combine" for > procedure "script-fu-pandora-combine". > The menu label given in gimp_install_procedure() already contained a > path. To make this work, pass just the menu's label to > gimp_install_procedure(). > > GIMP-Error: Procedure 'gimp-layer-copy' has been called with an invalid > ID for argument 'layer'. Most likely a plug-in is trying to work on a > layer that no longer exists. > > a calling error occurred while trying to run: "gimp-layer-copy" > GIMP-Warning: Plug-In '(null)' left image undo in inconsistent state, > closing open undo groups. > > batch command: experienced an execution error. > > > I am not sure what it gimp is telling me. Any assistance would be > appreciated. The first error probably comes from another script, probably script-fu-pandora-combine. The second might come from passing the RUN-NONINTERACTIVE argument to another scheme function, in this case script-fu-EZImprover (to a scheme function, another scheme (script-fu) function is just another scheme function, whether registered or not, and therefore it looks at that functions own argument list. Calling the same function from for instance Python *does* require that argument). Get that argument out of there and try again. Hope this helps.
Message-ID:<slrngdl74j.98e.houghi@pasta.houghi>
Subject:
Re: calling a script-fu script in batch mode
Date:Wed, 24 Sep 2008 21:01:23 +0100
Niels Giesen wrote: > The second might come from passing the RUN-NONINTERACTIVE argument to > another scheme function, in this case script-fu-EZImprover (to a > scheme function, another scheme (script-fu) function is just another > scheme function, whether registered or not, and therefore it looks at > that functions own argument list. Calling the same function from for > instance Python *does* require that argument). Get that argument out > of there and try again. > > Hope this helps. What would hep me is to show what it must be, Especialy in the form of gimp --batch-interpreter ... I get all kinds of errors and I have no idea on how to solve them. I will start a new thread for this. houghi -- First we thought the PC was a calculator. Then we found out how to turn numbers into letters with ASCII and we thought it was a typewriter. Then we discovered graphics, and we thought it was television. With the World Wide Web, we've realized it's a brochure. -- Douglas Adams.
Message-ID:<2yRzk.3120$yS5.1534@edtnps83>
Subject:
calling a script-fu script in batch mode
Date:Tue, 16 Sep 2008 17:55:26 +0100
Hi
I am trying to call the EZImprover FX-foundry script in
a batch mode.
I was trying to model it after the simple example
Simple-Unsharp-Mask at gimp.org
Here is what I have
(define (simple-ezimprover filename)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename
filename)))
(drawable (car (gimp-image-get-active-layer image))))
(script-fu-EZImprover RUN-NONINTERACTIVE image drawable 0)
(set! drawable (car (gimp-image-get-active-layer image)))
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)))
I saved this as simple-ezimprover.scm in my gimp-2.4/scripts folder.
This is the error I get
GIMP-Error: Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu)
attempted to register the menu item "<Image>/Filters/Combine" for
procedure "script-fu-pandora-combine".
The menu label given in gimp_install_procedure() already contained a
path. To make this work, pass just the menu's label to
gimp_install_procedure().
GIMP-Error: Procedure 'gimp-layer-copy' has been called with an invalid
ID for argument 'layer'. Most likely a plug-in is trying to work on a
layer that no longer exists.
a calling error occurred while trying to run: "gimp-layer-copy"
GIMP-Warning: Plug-In '(null)' left image undo in inconsistent state,
closing open undo groups.
batch command: experienced an execution error.
I am not sure what it gimp is telling me. Any assistance would be
appreciated.
Message-ID:<87zllxa0an.fsf@gmail.com>
Subject:
Re: calling a script-fu script in batch mode
Date:Wed, 24 Sep 2008 19:03:44 +0100
Edward Redman <redman@accesswave.ca> writes: > Hi > I am trying to call the EZImprover FX-foundry script in > a batch mode. > I was trying to model it after the simple example > > Simple-Unsharp-Mask at gimp.org > > Here is what I have > > (define (simple-ezimprover filename) > (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename > filename))) > (drawable (car (gimp-image-get-active-layer image)))) > (script-fu-EZImprover RUN-NONINTERACTIVE image drawable 0) > (set! drawable (car (gimp-image-get-active-layer image))) > (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) > (gimp-image-delete image))) > > I saved this as simple-ezimprover.scm in my gimp-2.4/scripts folder. > > This is the error I get > > GIMP-Error: Plug-in "script-fu" > (/usr/lib/gimp/2.0/plug-ins/script-fu) > attempted to register the menu item "<Image>/Filters/Combine" for > procedure "script-fu-pandora-combine". > The menu label given in gimp_install_procedure() already contained a > path. To make this work, pass just the menu's label to > gimp_install_procedure(). > > GIMP-Error: Procedure 'gimp-layer-copy' has been called with an invalid > ID for argument 'layer'. Most likely a plug-in is trying to work on a > layer that no longer exists. > > a calling error occurred while trying to run: "gimp-layer-copy" > GIMP-Warning: Plug-In '(null)' left image undo in inconsistent state, > closing open undo groups. > > batch command: experienced an execution error. > > > I am not sure what it gimp is telling me. Any assistance would be > appreciated. The first error probably comes from another script, probably script-fu-pandora-combine. The second might come from passing the RUN-NONINTERACTIVE argument to another scheme function, in this case script-fu-EZImprover (to a scheme function, another scheme (script-fu) function is just another scheme function, whether registered or not, and therefore it looks at that functions own argument list. Calling the same function from for instance Python *does* require that argument). Get that argument out of there and try again. Hope this helps.
Message-ID:<slrngdl74j.98e.houghi@pasta.houghi>
Subject:
Re: calling a script-fu script in batch mode
Date:Wed, 24 Sep 2008 21:01:23 +0100
Niels Giesen wrote: > The second might come from passing the RUN-NONINTERACTIVE argument to > another scheme function, in this case script-fu-EZImprover (to a > scheme function, another scheme (script-fu) function is just another > scheme function, whether registered or not, and therefore it looks at > that functions own argument list. Calling the same function from for > instance Python *does* require that argument). Get that argument out > of there and try again. > > Hope this helps. What would hep me is to show what it must be, Especialy in the form of gimp --batch-interpreter ... I get all kinds of errors and I have no idea on how to solve them. I will start a new thread for this. houghi -- First we thought the PC was a calculator. Then we found out how to turn numbers into letters with ASCII and we thought it was a typewriter. Then we discovered graphics, and we thought it was television. With the World Wide Web, we've realized it's a brochure. -- Douglas Adams.
Message-ID:<2yRzk.3120$yS5.1534@edtnps83>
Subject:
calling a script-fu script in batch mode
Date:Tue, 16 Sep 2008 17:55:26 +0100
Hi
I am trying to call the EZImprover FX-foundry script in
a batch mode.
I was trying to model it after the simple example
Simple-Unsharp-Mask at gimp.org
Here is what I have
(define (simple-ezimprover filename)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename
filename)))
(drawable (car (gimp-image-get-active-layer image))))
(script-fu-EZImprover RUN-NONINTERACTIVE image drawable 0)
(set! drawable (car (gimp-image-get-active-layer image)))
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)))
I saved this as simple-ezimprover.scm in my gimp-2.4/scripts folder.
This is the error I get
GIMP-Error: Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu)
attempted to register the menu item "<Image>/Filters/Combine" for
procedure "script-fu-pandora-combine".
The menu label given in gimp_install_procedure() already contained a
path. To make this work, pass just the menu's label to
gimp_install_procedure().
GIMP-Error: Procedure 'gimp-layer-copy' has been called with an invalid
ID for argument 'layer'. Most likely a plug-in is trying to work on a
layer that no longer exists.
a calling error occurred while trying to run: "gimp-layer-copy"
GIMP-Warning: Plug-In '(null)' left image undo in inconsistent state,
closing open undo groups.
batch command: experienced an execution error.
I am not sure what it gimp is telling me. Any assistance would be
appreciated.
Message-ID:<87zllxa0an.fsf@gmail.com>
Subject:
Re: calling a script-fu script in batch mode
Date:Wed, 24 Sep 2008 19:03:44 +0100
Edward Redman <redman@accesswave.ca> writes: > Hi > I am trying to call the EZImprover FX-foundry script in > a batch mode. > I was trying to model it after the simple example > > Simple-Unsharp-Mask at gimp.org > > Here is what I have > > (define (simple-ezimprover filename) > (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename > filename))) > (drawable (car (gimp-image-get-active-layer image)))) > (script-fu-EZImprover RUN-NONINTERACTIVE image drawable 0) > (set! drawable (car (gimp-image-get-active-layer image))) > (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) > (gimp-image-delete image))) > > I saved this as simple-ezimprover.scm in my gimp-2.4/scripts folder. > > This is the error I get > > GIMP-Error: Plug-in "script-fu" > (/usr/lib/gimp/2.0/plug-ins/script-fu) > attempted to register the menu item "<Image>/Filters/Combine" for > procedure "script-fu-pandora-combine". > The menu label given in gimp_install_procedure() already contained a > path. To make this work, pass just the menu's label to > gimp_install_procedure(). > > GIMP-Error: Procedure 'gimp-layer-copy' has been called with an invalid > ID for argument 'layer'. Most likely a plug-in is trying to work on a > layer that no longer exists. > > a calling error occurred while trying to run: "gimp-layer-copy" > GIMP-Warning: Plug-In '(null)' left image undo in inconsistent state, > closing open undo groups. > > batch command: experienced an execution error. > > > I am not sure what it gimp is telling me. Any assistance would be > appreciated. The first error probably comes from another script, probably script-fu-pandora-combine. The second might come from passing the RUN-NONINTERACTIVE argument to another scheme function, in this case script-fu-EZImprover (to a scheme function, another scheme (script-fu) function is just another scheme function, whether registered or not, and therefore it looks at that functions own argument list. Calling the same function from for instance Python *does* require that argument). Get that argument out of there and try again. Hope this helps.
Message-ID:<slrngdl74j.98e.houghi@pasta.houghi>
Subject:
Re: calling a script-fu script in batch mode
Date:Wed, 24 Sep 2008 21:01:23 +0100
Niels Giesen wrote: > The second might come from passing the RUN-NONINTERACTIVE argument to > another scheme function, in this case script-fu-EZImprover (to a > scheme function, another scheme (script-fu) function is just another > scheme function, whether registered or not, and therefore it looks at > that functions own argument list. Calling the same function from for > instance Python *does* require that argument). Get that argument out > of there and try again. > > Hope this helps. What would hep me is to show what it must be, Especialy in the form of gimp --batch-interpreter ... I get all kinds of errors and I have no idea on how to solve them. I will start a new thread for this. houghi -- First we thought the PC was a calculator. Then we found out how to turn numbers into letters with ASCII and we thought it was a typewriter. Then we discovered graphics, and we thought it was television. With the World Wide Web, we've realized it's a brochure. -- Douglas Adams.



RSS News Feed