You are here

Error on script with plugin

Hi,

I'm trying to make a script:


(define (make-pion-3d image layer)
(let*
(
(newLayer (car (gimp-layer-copy layer TRUE)))
)
(gimp-image-add-layer image newLayer 0)
(script-fu-add-bevel 0 image nnewLayer 30 FALSE FALSE)
)
)

(script-fu-register
"make-pion-3d"
"Make pion 3D"
"Creates a 3D pion"
"Didier Bretin"
"Didier Bretin"
"2009"
"*"
SF-IMAGE "Image" 0
SF-DRAWABLE "Layer" 0
)
(script-fu-menu-register "make-pion-3d" "/Filters")

And when I try to use it, I have this error:
Erreur d'exécution « Make pion 3D » :
Error: Procedure execution of gimp-image-get-active-drawable failed on
invalid input arguments: La procédure « gimp-image-get-active-drawable »
a été appelée avec un ID erroné pour le paramètre « image ». Très
probablement un greffon est en train d'essayer de travailler sur une
image qui n'existe plus.

The french error message tells that I use a false ID for the parameter
"image". Probably a script is trying to work on a image that doesn't
exist anymore.

Any idea which error I make ?

Subscribe to Comments for "Error on script with plugin"