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