On Wed, 2008-01-02 at 21:09 -0200, John Coppens wrote:
> The script is supposed to add a title on a selected place, and worked
> fine under 2.2.x. Now, the text appears as a new layer, but the color
> isn't right, the layer seems blocked (cannot select another layer)while
> it's still floating, the combination mode (addition/subtraction) is not
> respected and the command in the script to flatten the image is not
> No errors appear, but something did go wrong...
I guess your problem comes from the commands in the declarations
statement of the let*
(width (car (gimp-drawable-width drawable)))
(cond ((= just 0) xmargin) ; left
((= just 1) (/ (- width fwidth) 2)) ; middle
((= just 2) (- width xmargin fwidth)) ; right
) ;; closing the declarations here.
(define layer (car (gimp-text-fontname image drawable
;; ^^^^^^ added a define as layer has comed out of declarations.
text-x text-y text 0 1
fontsize POINTS fontname)
(cond ((= mode 0) NORMAL-MODE)
((= mode 1) ADDITION-MODE)
((= mode 2) SUBTRACT-MODE)
(gimp-layer-set-opacity layer alpha)
) ;; ) closing the let* here.
Gimp-user mailing list