RSS/Atom feed Twitter
Site is read-only, email is disabled

Gimp 2.3.18 and script-fu errors

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

Gimp 2.3.18 and script-fu errors David Woodfall 22 Aug 13:43
  Gimp 2.3.18 and script-fu errors Stephan Hegel 22 Aug 16:15
  Gimp 2.3.18 and script-fu errors Pere Pujal i Carabantes 22 Aug 22:49
   Gimp 2.3.18 and script-fu errors David Woodfall 23 Aug 10:49
    Gimp 2.3.18 and script-fu errors Pere Pujal i Carabantes 23 Aug 19:14
David Woodfall
2007-08-22 13:43:09 UTC (over 17 years ago)

Gimp 2.3.18 and script-fu errors

I have just downloaded and tested two scripts and get the same error with each:

Error: Set!: Unbound variable: new

The scripts are gm-invert and gm-solarize. Is there some incompatability with newer versions of Gimp and these scripts? Is there an easy way to perhaps edit the scripts to get them working?

Stephan Hegel
2007-08-22 16:15:29 UTC (over 17 years ago)

Gimp 2.3.18 and script-fu errors

David Woodfall wrote:

I have just downloaded and tested two scripts and get the same error with each:

Error: Set!: Unbound variable: new

The scripts are gm-invert and gm-solarize. Is there some incompatability with newer versions of Gimp and these scripts? Is there an easy way to perhaps edit the scripts to get them working?

AFAIK, the interpreter has changed. I've found the following on gimpusers.com regarding the upcoming 2.4 release:

- script-fu migration howto A document, perhaps as part of the new website, that explains what needs to be done to fix scripts that fail to run correctly with GIMP 2.4. Perhaps also explain new features in 2.4 that are relevant for script authors. Point to documentation for Tiny-Fu.

Don't know if the mentioned document has been written. However, the pointer to the tiny-fu docs could be helpful.

Rgds, Stephan.

Pere Pujal i Carabantes
2007-08-22 22:49:37 UTC (over 17 years ago)

Gimp 2.3.18 and script-fu errors

El dc 22 de 08 del 2007 a les 12:43 +0100, en/na David Woodfall va escriure:

I have just downloaded and tested two scripts and get the same error with each:

Error: Set!: Unbound variable: new

The scripts are gm-invert and gm-solarize. Is there some incompatability with newer versions of Gimp and these scripts? Is there an easy way to perhaps edit the scripts to get them working?

If you can not wait for them to be fixed, the lamer way: just have to change on both files

(set! new (car(gimp-layer-copy layer 1))) ; Add an alpha channel by
(define new (car(gimp-layer-copy layer 1))) ; Add an alpha channel

David Woodfall
2007-08-23 10:49:13 UTC (over 17 years ago)

Gimp 2.3.18 and script-fu errors

On (22:49 22/08/07), Pere Pujal i Carabantes put forth the proposition:

El dc 22 de 08 del 2007 a les 12:43 +0100, en/na David Woodfall va escriure:

I have just downloaded and tested two scripts and get the same error with each:

Error: Set!: Unbound variable: new

The scripts are gm-invert and gm-solarize. Is there some incompatability with newer versions of Gimp and these scripts? Is there an easy way to perhaps edit the scripts to get them working?

If you can not wait for them to be fixed, the lamer way: just have to change on both files

(set! new (car(gimp-layer-copy layer 1))) ; Add an alpha channel by
(define new (car(gimp-layer-copy layer 1))) ; Add an alpha channel

Works thanks. Is set!/define the only difference with the new script engine? I edited a few more and all seems well.

Pere Pujal i Carabantes
2007-08-23 19:14:56 UTC (over 17 years ago)

Gimp 2.3.18 and script-fu errors

El dj 23 de 08 del 2007 a les 09:49 +0100, en/na David Woodfall va escriure:

On (22:49 22/08/07), Pere Pujal i Carabantes put forth the proposition:

El dc 22 de 08 del 2007 a les 12:43 +0100, en/na David Woodfall va escriure:

Error: Set!: Unbound variable: new

(set! new (car(gimp-layer-copy layer 1))) ; Add an alpha channel by
(define new (car(gimp-layer-copy layer 1))) ; Add an alpha channel

Works thanks. Is set!/define the only difference with the new script engine? I edited a few more and all seems well.

I am not sure, I am just learning. The main difference is the interpreter Tinyscheme vs SIOD, each one has its own interpretation of the standard.

About set!, it serves to put a value to a variable, not to declare it. Say open a gimp script-fu console and type the following:

(set! x 1) ---> Error: set!: unbound variable: x

(define x) ---> x (set! x 1) ---> 1

As you see, set! works once the variable is declared.

Yours Pere