gimpusers.com logo
German version English version

Not logged in

Sign up! | Lost password?

Latest discussion

  1. gimp-docs | yesterday 10:55 PM
    a new user perspective
  2. gimp-developer | yesterday 08:04 PM
    scanner support should be File->Acquire
  3. gegl-developer | yesterday 06:24 PM
    babl docs
  4. gimp-docs | yesterday 12:46 PM
    GIMP Manual
  5. gimp-user | yesterday 09:42 AM
    Bug

External news

Poll

How good are you at programming?

OMG, that is nothing for me at all!

I've been coding a little bit but I'm not very fit at it

I'm pretty good at programming and would maybe be able to write a Plug-In for GIMP

I'm very good at programming and I would theoretically be able to hack for the GIMP core

See results

Stats

gimpusers.com RSS feed

GIMP Forums » For GIMP users

Error on script-fu

Jump to message:

  1. Error on script-fu — Didier Bretin, 24 Jun 2009 09:05 AM
    1. Error on script-fu — saulgoode@flashin..., 24 Jun 2009 03:15 PM
      1. Autostart script — Jochen Cichon, 30 Jun 2009 01:23 PM
    2. Error on script-fu — Didier Bretin, 03 Jul 2009 09:36 PM
      1. Error on script-fu — Michael Schumacher, 03 Jul 2009 09:41 PM
        1. Error on script-fu — Didier Bretin, 03 Jul 2009 11:08 PM
      2. Error on script-fu — saulgoode@flashin..., 03 Jul 2009 11:25 PM
        1. Error on script-fu — Didier Bretin, 04 Jul 2009 08:23 AM

As a registered user, you can subscribe forum threads in order to get notified when replies are posted. Just log in at the right top of the page if you already have an account, otherwise you can register for free.

Permalink:4A41D02C.8080004@bretin.net
Date:24 Jun 2009 09:05 AM
From:Didier Bretin
Subject:Error on script-fu
Hi,

I'm new to the world of script-fu writing, and I'm trying to make a
script for repetitive actions I need to make.

Here is my script:
(define (make-pion-3d image calque)
(let *
(
(newCalque (car (gimp-layer-copy calque TRUE)))
)
(gimp-image-add-layer image newCalque 0)
(script-fu-add-bevel 0 image newCalque 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 "Calque du pion" 0
)
(script-fu-menu-register "make-pion-3d" "<Toolbox>/Xtns/Script-Fu/Pion")


And when I try to apply it on a layer, I got the following 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 ?

Regards.
--
Didier Bretin
http://bretin.net/
http://twitter.com/didier69

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
↑Back to thread overview
Permalink:20090624091510.2evfypyzn4scc88c@flash...
Date:24 Jun 2009 03:15 PM
From:saulgoode@flashingtwelve.brickfilms.com
Subject:Error on script-fu
Quoting Didier Bretin <didier@bretin.net>:

> And when I try to apply it on a layer, I got the following 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.

It would seem you are executing the script with no image open. I would
recommend moving the command from the <Toolbox>/Xtns menu to the
<Image>/Filters menu, and also using a constraint of "*" (in the line
just before SF-IMAGE ...). This will ensure that an image exists when
the script is executed.
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
↑Back to thread overview
Permalink:4A49F5A8.1050100@vfnet.de
Date:30 Jun 2009 01:23 PM
From:Jochen Cichon
Subject:Autostart script
Is it possible to do an autostart script on gimp...

something that e.g. minimize the empty image or even move it out of my
viewport...
--
joschi

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
↑Back to thread overview
Permalink:4A4E5DBE.7050209@bretin.net
Date:03 Jul 2009 09:36 PM
From:Didier Bretin
Subject:Error on script-fu
Hi,

Nobody can help me with this issue ?

I searched on the web, but I can't find an example which can help me
with this :(.

Thanks for your help or tips.

Didier Bretin wrote:
> Hi,
>
> I'm new to the world of script-fu writing, and I'm trying to make a
> script for repetitive actions I need to make.
>
> Here is my script:
> (define (make-pion-3d image calque)
> (let *
> (
> (newCalque (car (gimp-layer-copy calque TRUE)))
> )
> (gimp-image-add-layer image newCalque 0)
> (script-fu-add-bevel 0 image newCalque 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 "Calque du pion" 0
> )
> (script-fu-menu-register "make-pion-3d" "<Toolbox>/Xtns/Script-Fu/Pion")
>
>
> And when I try to apply it on a layer, I got the following 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 ?
>
> Regards.
--
Didier Bretin
http://bretin.net/
http://twitter.com/didier69
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
↑Back to thread overview
Permalink:4A4E5EFE.303@gmx.de
Date:03 Jul 2009 09:41 PM
From:Michael Schumacher
Subject:Error on script-fu
Didier Bretin wrote:

> Nobody can help me with this issue ?

What about the first reply you got - didn't this help?


Michael
--
GIMP > http://www.gimp.org | IRC: irc://irc.gimp.org/gimp
Wiki > http://wiki.gimp.org | .de: http://gimpforum.de
Plug-ins > http://registry.gimp.org |
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
↑Back to thread overview
Permalink:4A4E734F.9010100@bretin.net
Date:03 Jul 2009 11:08 PM
From:Didier Bretin
Subject:Error on script-fu
Michael Schumacher wrote:
> Didier Bretin wrote:
>
>> Nobody can help me with this issue ?
>
> What about the first reply you got - didn't this help?

Not at all. Now my plugin is in the right menu, but I have the same error.
--
Didier Bretin
http://bretin.net/
http://twitter.com/didier69
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
↑Back to thread overview
Permalink:20090703172505.6ha19ng668w04k48@flash...
Date:03 Jul 2009 11:25 PM
From:saulgoode@flashingtwelve.brickfilms.com
Subject:Error on script-fu
Quoting Didier Bretin <didier@bretin.net>:

> Nobody can help me with this issue ?

You should report back on whether a suggestion works, else people
might assume all is copacetic.

Looking deeper at your script, the problem is with the call which adds
the bevel:

>> (script-fu-add-bevel 0 image newCalque 30 FALSE FALSE)

When a Script-fu calls another Script-fu, you need to omit the
RUN-MODE (when calling a plug-in though, the RUN-MODE is needed). Your
call should be emended to:

>> (script-fu-add-bevel image newCalque 30 FALSE FALSE)
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
↑Back to thread overview
Permalink:4A4EF56A.8080508@bretin.net
Date:04 Jul 2009 08:23 AM
From:Didier Bretin
Subject:Error on script-fu
saulgoode@flashingtwelve.brickfilms.com wrote:
> You should report back on whether a suggestion works, else people
> might assume all is copacetic.

Yes you are right, sorry ;).

> Looking deeper at your script, the problem is with the call which adds
> the bevel:
>
>>> (script-fu-add-bevel 0 image newCalque 30 FALSE FALSE)
>
> When a Script-fu calls another Script-fu, you need to omit the
> RUN-MODE (when calling a plug-in though, the RUN-MODE is needed). Your
> call should be emended to:
>
>>> (script-fu-add-bevel image newCalque 30 FALSE FALSE)

Great it works !

I will look deeper in the documentation to see if it's write somewhere.

Thanks again for the answer.
--
Didier Bretin
http://bretin.net/
http://twitter.com/didier69
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
↑Back to thread overview

Adobe® Photoshop® is a registered trademark of Adobe Systems, Inc. Linux is a trademark of Linus Torvalds. Ubuntu and Canonical are registered trademarks of Canonical Ltd. | Clock times are shown as CET / CEST | Imprint / Privacy policy | powered by bitfire it services | sponsored by Hirners Hotel Guide