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

Script-fu errors after upgrade 2.2.15 => 2.4.0-rc2

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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Script-fu errors after upgrade 2.2.15 => 2.4.0-rc2 Jan Tomasek 07 Sep 15:19
  Script-fu errors after upgrade 2.2.15 => 2.4.0-rc2 Pere Pujal i Carabantes 07 Sep 19:56
Jan Tomasek
2007-09-07 15:19:59 UTC (over 17 years ago)

Script-fu errors after upgrade 2.2.15 => 2.4.0-rc2

Hi,

I seek help with migrating script-fu script from Gimp 2.2 to 2.4.

A long, long time ago I wrote script-fu script to automate adding boder to my photos [1] (just simple frame and two texts at bottom of image).

After upgrade to 2.4.0-rc2 script stoped working, first I found problem with (set! variable ...) syntax, I replaced that by (define variable ...) and now I'm getting "Procedural database execution of gimp-floating-sel-anchor failed:" error without any further explanation of problem. I've no idea what get wrong there.

(define rtText (car
(gimp-text-fontname
img -1
0 0
rightText
0
TRUE
fontSize PIXELS
fontName)
)
)
(define rtTextWidth (car (gimp-drawable-width rtText) ) ) (define rtTextHeight (car (gimp-drawable-height rtText) ) ) (gimp-layer-resize rtLayer rtTextWidth rtTextHeight 0 0 ) ; it die here :((
(gimp-floating-sel-anchor rtText) ....^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (gimp-layer-set-offsets rtLayer (- width rtTextWidth frameSize3) (- height(*0.5frameSize)(*0.5rtTextHeight)))

Is there some "script-fu migration howto"? Or maybe on this list is someone so kind to check my script... it is attached to this email.

Best regards

Pere Pujal i Carabantes
2007-09-07 19:56:06 UTC (over 17 years ago)

Script-fu errors after upgrade 2.2.15 => 2.4.0-rc2

El dv 07 de 09 del 2007 a les 15:19 +0200, en/na Jan Tomasek va escriure:

I seek help with migrating script-fu script from Gimp 2.2 to 2.4.

After upgrade to 2.4.0-rc2 script stoped working, first I found problem with (set! variable ...) syntax, I replaced that by (define variable ...) and now I'm getting "Procedural database execution of gimp-floating-sel-anchor failed:" error without any further explanation of problem. I've no idea what get wrong there.

(define rtText (car
(gimp-text-fontname
img -1

Why you put img -1 ?? you don't have this in the version for gimp 2.2

And BTW, putting here the old value your script will work.

Is there some "script-fu migration howto"? Or maybe on this list is someone so kind to check my script... it is attached to this email.

There are nice pages to read:
http://www.ve3syb.ca/software/gimp/tiny-fu.html http://www.ve3syb.ca/software/gimp/extras.html

Best regards

Yours
Pere