Sign up now! · Forgot password?
RSS/Atom feed Twitter

Using script-fu-drop-shadow in another script

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.

5 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

Using script-fu-drop-shadow in another script Maxence Guesdon 18 Sep 16:49
Using script-fu-drop-shadow in another script daniel cline 18 Sep 21:15
  Using script-fu-drop-shadow in another script Guillermo S. Romero / Familia Romero 18 Sep 22:41
maxence.guesdon@inria.fr 07 Oct 20:15
  Using script-fu-drop-shadow in another script Jeff Trefftzs 18 Sep 19:09
   Using script-fu-drop-shadow in another script Maxence Guesdon 18 Sep 20:00
Maxence Guesdon
2002-09-18 16:49:49 UTC (about 18 years ago)

Using script-fu-drop-shadow in another script

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,

Jeff Trefftzs
2002-09-18 19:09:55 UTC (about 18 years ago)

Using script-fu-drop-shadow in another script

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.

Maxence Guesdon
2002-09-18 20:00:33 UTC (about 18 years ago)

Using script-fu-drop-shadow in another script

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,

daniel cline
2002-09-18 21:15:25 UTC (about 18 years ago)

Using script-fu-drop-shadow in another script

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

Thanks,
Dick

Guillermo S. Romero / Familia Romero
2002-09-18 22:41:33 UTC (about 18 years ago)

Using script-fu-drop-shadow in another script

DCARCH@compuserve.com (2002-09-18 at 1515.25 -0400):

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

Do you mean unsubscribe from gimp user list?

From the headers:

List-Unsubscribe: ,

From the mail body, at the end:

http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Some day mail apps will finally understand what a mailing list is and provide tools to help when you are subscribed, like unsubcribe from list or search in archives (another header has that info, ie). :]

GSR