Re: Script-Fu from Perl-Fu?

2000-01-27 Thread Stephan Skrodzki

  GIMP version 1.1.11
 
 ^^^ that version is waay old it already has a long beard! please try a
 slightly newer one, and most probably everything I said becomes more true.

Yeah, now, after upgrading to 1.1.14 ... all you said came true:

Gimp crashes :-)

Does this just happen with gimp-perl or also with the scheme scripts?

Regards
 sTeve



Re: Script-Fu from Perl-Fu?

2000-01-27 Thread Kelly Lynn Martin

On Thu, 27 Jan 2000 11:35:22 +0100, Stephan Skrodzki 
[EMAIL PROTECTED] said:

Yeah, now, after upgrading to 1.1.14 ... all you said came true:

Gimp crashes :-)

Maybe you should try 1.1.15, which is the most recent developer's
release. :)

Kelly



Re: Script-Fu from Perl-Fu?

2000-01-24 Thread Stephan Skrodzki

  I'd like to use a Script-Fu script from within gimp-perl a Gimp tells me:
 
  script-fu-drop-shadow(0,$unsel_lay,8,8,15,"black",60,1);
 
 You are trying to subtract "shadow" from "drop" from "fu" from
 "script". If you use a recent gimp version, then just use underscores
 (script_fu_drop_shadow) and everything will be fine.
 
 Well, almost. You will find that gimp and/or script-fu will happily crash
 when you try this. It might even work, but script-fu is broken in that
 respect since over a year now, and I don't expect that to change soon.

This is the result I get then:

marly-text-button: function/macro "script_fu_drop_shadow" not found in Gimp at 
/home/skrodzki/.gimp-1.1/plug-ins/marly-text-button line 39 (ERROR)

so I can't even check, if gimp could crash :-)

Regards
 Steve



Re: Script-Fu from Perl-Fu?

2000-01-24 Thread Kelly Lynn Martin

On Sun, 23 Jan 2000 18:43:03 +0100, [EMAIL PROTECTED] (Stephan 
Skrodzki) said:

Howdy,
I'd like to use a Script-Fu script from within gimp-perl a Gimp tells me:

function/macro "shadow" not found in Gimp at 
/home/skrodzki/.gimp-1.1/plug-ins/marly-text-button line 39 (ERROR)

And excerpt of the script:

use Gimp qw(:auto __);
use Gimp::Fu;

$unsel_lay = gimp_layer_new($img, $img-width, $img-height,
 RGB, "Unsel Shadow", 100, NORMAL_MODE);
$unsel_lay-add_layer(-1);
gimp_layer_add_alpha($unsel_lay);
gimp_edit_clear($unsel_lay);
script-fu-drop-shadow(0,$unsel_lay,8,8,15,"black",60,1);
 ^

Try using script_fu_drop_shadow (underlines, not dashes).

Perl parses this as script - fu - drop - shadow ().  The first
three evaluate to zero, and the last to a call to the (undefined)
subroutine shadow.

return $img;
}

Kelly



Re: Script-Fu from Perl-Fu?

2000-01-23 Thread Marc Lehmann

On Sun, Jan 23, 2000 at 06:43:03PM +0100, Stephan Skrodzki 
[EMAIL PROTECTED] wrote:
 Howdy,
 
 I'd like to use a Script-Fu script from within gimp-perl a Gimp tells me:

 script-fu-drop-shadow(0,$unsel_lay,8,8,15,"black",60,1);

You are trying to subtract "shadow" from "drop" from "fu" from
"script". If you use a recent gimp version, then just use underscores
(script_fu_drop_shadow) and everything will be fine.

Well, almost. You will find that gimp and/or script-fu will happily crash
when you try this. It might even work, but script-fu is broken in that
respect since over a year now, and I don't expect that to change soon.

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |