[Gimp-user] Script-fu errors after upgrade 2.2.15 => 2.4.0-rc2
Jan Tomasek
jan at tomasek.cz
Fri Sep 7 06:19:59 PDT 2007
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
--
-----------------------
Jan Tomasek aka Semik
http://www.tomasek.cz/
[1]
http://www.tomasek.cz/foto_vylety/Beskydy2005/5den/img/20051030_9999X_small.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: photoBorder.scm
Type: text/x-scheme
Size: 5963 bytes
Desc: not available
Url : /lists/gimp-user/attachments/20070907/8265cba4/attachment.bin
More information about the Gimp-user
mailing list