[Gimp-user] Scheme in Gimp 2.0

2004-03-31 Thread Tom Cole
I have tried to use a script that I used to use in Gimp 1.2.5 called 'Aqua 
Pill' (available from the gug.sunsite.dk website in the script gallery). All 
my other scripts seem to have made the leap to Gimp 2.0, as one would expect, 
apart from this one. The error message reads:

Error while executing
(script-fu-aqua-pill-button Click Me! 50 
-*-tekton-*-r-*-*-24-*-*-*-p-*-*-* '(0 0 0) '(255 0 0) 10 10 1 1 TRUE TRUE 
TRUE)
ERROR: unbound variable (errobj gimp-channel-ops-offset)

What does this mean?

Thanks 

Tom

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


Re: [Gimp-user] Scheme in Gimp 2.0

2004-03-31 Thread Simon Budig
Tom Cole ([EMAIL PROTECTED]) wrote:
 I have tried to use a script that I used to use in Gimp 1.2.5 called 'Aqua 
 Pill' (available from the gug.sunsite.dk website in the script gallery). All 
 my other scripts seem to have made the leap to Gimp 2.0, as one would expect, 
 apart from this one. The error message reads:
 
 Error while executing
 (script-fu-aqua-pill-button Click Me! 50 
 -*-tekton-*-r-*-*-24-*-*-*-p-*-*-* '(0 0 0) '(255 0 0) 10 10 1 1 TRUE TRUE 
 TRUE)
 ERROR: unbound variable (errobj gimp-channel-ops-offset)
 
 What does this mean?

Basically this means, that the script has to be ported to GIMP 2.0.

The offending command in this error message is gimp-channel-ops-offset,
which has been renamed to gimp-drawable-offset in GIMP 2.0. Looking at
that error also gives the hint, that there is something wrong with the
font specification, since GIMP 2.0 no longer relies on the weird -*-...
X11 Logical Font Descriptor but uses Fontconfig Font specifications like
Tekton 24.

So someone needs to invest some amount of work into this script.

Bye,
Simon
-- 
  [EMAIL PROTECTED]   http://www.home.unix-ag.org/simon/
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Scheme in Gimp 2.0

2004-03-31 Thread Elaine Normandy
Simon Budig wrote:

The offending command in this error message is gimp-channel-ops-offset,
which has been renamed to gimp-drawable-offset in GIMP 2.0. Looking at
that error also gives the hint, that there is something wrong with the
font specification, since GIMP 2.0 no longer relies on the weird -*-...
X11 Logical Font Descriptor but uses Fontconfig Font specifications like
Tekton 24.
 

Very timely.  I got perl-gimp working on my machine yesterday, and tried 
stampify.pl almost immediately.   It failed due to the 

  gimp_edit_fill($layer1);

problem mentioned yesterday.  I changed that to

 gimp_edit_fill($layer1, BACKGROUND_FILL);

and then it failed due to the

 gimp_channel_ops_offset($layer1, 1, 0, -($diameter / 2), -($diameter / 
2));

I changed this to

 gimp_drawable_offset($layer1, 1, 0, -($diameter / 2 ), -($diameter / 2 ));

The script could still use a little tweaking, I think, since I can see 
some subtle problems I think I could fix, but it is now working. 

Thanks!

--
Elaine Normandy (Colorado Springs)
Weblog: http://www.stardel.com/fiveacres/
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user