Re: [Gimp-user] Using script-fu-drop-shadow in another script

2002-09-18 Thread daniel cline

Hey Jeff, how come I am receiving all of your e-mails, and how do I stop
it.

Thanks,
Dick
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



Re: [Gimp-user] Using script-fu-drop-shadow in another script

2002-09-18 Thread Maxence Guesdon

Hi Jeff,

Thanks for your response, I found what was wrong:
I should not have written 
script-fu-drop-shadow 1 image text-layer ...
but
  image text-layer
even if the description of script-fu-drop-shadow contains
an interactive mode parameter.
I must admit I'm a real newbie to gimp scripts ;-)

Thanks again,

-- 
Maxence
> 
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



Re: [Gimp-user] Using script-fu-drop-shadow in another script

2002-09-18 Thread Jeff Trefftzs

Hi Max -

I ran into something like this myself.  The problem is that there's another 
script that defines its own version of the max function, and gets it wrong.  
(At least that's how I remember it, and I remember fixing it, but I can't 
remember which script :-( ).

I suggest you grep for "(define (max " in /usr/local/gimp/1.2/scripts and see 
what you find.  I think that's how I found it in the first place.

You might also check your call to gimp-text-fontname.  I think you want to 
take the car of its return value.  Try:

(let* ((text-layer (car (gimp-text-fontname image bottom-layer ...)))

Good luck.

-- 
--Jeff

Jeff Trefftzs <[EMAIL PROTECTED]>
http://www.tcsn.net/trefftzsHome Page
http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery
http://trefftzs.topcities.com/home.html Photo galleries



___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] Using script-fu-drop-shadow in another script

2002-09-18 Thread Maxence Guesdon

Hello,

I'm trying to use script-fu-drop-shadow in another scheme script.
Here it is:
(let* ((image (car (gimp-image-new 256 256 RGB)))
(bottom-layer  (car (gimp-layer-new image 256 256 RGB-IMAGE "fond" 100 
NORMAL-MODE)))
)
   (gimp-image-add-layer image bottom-layer 0)
   (gimp-drawable-fill bottom-layer BG-IMAGE-FILL)

   (let* ((text-layer (gimp-text-fontname image bottom-layer -1 0 "text" 0 TRUE 52 
PIXELS "-adobe-courier-bold-r-normal-*-*-140-*-*-m-*-iso8859-9")))
 (script-fu-drop-shadow 1 image text-layer "8" "8" "15" '(0 0 0) 
"80" TRUE)
 (gimp-floating-sel-anchor text-layer)
 ))

But gimp does not accept it, and the only error message I get
is a mysterious :
ERROR: wta(1st) to max (errobj 8)

(print errobj) gives me the following:

"8"
()

Can anybody help me, please ?
BTW, do you know a way to get real error messages ?

Thanks in advance,

-- 
Maxence Guesdon
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user