Re: Script-fu tutorial

2001-01-14 Thread Michael

Hi!

> Is there a tutorial/documentation for script fu programming available?

A Google search offers some good links to Script-fu tutorials. Just try:
http://www.google.com/search?q=gimp+script-fu+tutorial

There's also a tiny introduction in Scheme (the Script-fu language) at
the Gimp User Group:
http://gug.sunsite.dk/?page=tutorials

Hope it helps.

CU, Michael

---=[[EMAIL PROTECTED]]=---
---=[ http://www.technoid.f2s.com ]=---




Re: Script-fu: "Burn-In" V1.9 is out

2000-08-28 Thread Roland Berger (EED)

Carl-Johan Sveningsson wrote:
> 
> Hi.
> 
> It's a great nice plugin,

Thanks!

> but 1.9 won't work at all for me.
> I don't know, is my gimp (1.1.25) weird or what's wrong?

No, but as I have stated, V1.9 is (only) for Gimp 1.0.
The error is typical for Gimp 1.1 (and there are a lot
more "errors" if you correct this one).

I'm working on porting the script to G1.1, so please
stand by. (Will take some days, though...)

Anyway - thanks for your feedback!

Roland



Re: Script-fu: "Burn-In" V1.9 is out

2000-08-27 Thread Carl-Johan Sveningsson

Hi.

It's a great nice plugin, but 1.9 won't work at all for me.

When I tried to shut off fadeout in the old version, this happened too,
but now it won't work at all.

I don't know, is my gimp (1.1.25) weird or what's wrong?

Anyway, the error I get is:

Script-Fu Error
ERROR: unbound variable (errobj gimp-image-disable-undo)

Could you fix it?

/WoC

On Fri, 25 Aug 2000, Roland Berger (EED) wrote:

> 
> First, let me say thanks to all people who gave me feedback
> and sent me bug reports the last days. This helps alot (and
> keeps me on working ;-)
> 
> Now for the news:
> I've just released Script-Fu "Burn-In" V1.9 for Gimp 1.0.X.
> You can now use your own background-layer and create
> fascinating text animations for the web.
> Please note that this version is considered as pre2.0 and
> therefore still "beta". It works, but I didn't have the time
> to do extensive testing. :-/
> (Burn-In V1.0 was already announced by Xach some days
>  ago (thanks!)
> 
> For download & demos please see
> http://fuchur.leute.server.de/burn_in/
> 
> Roland
> 


"Succumb to natural tendencies. Be hateful and boring."

  ICQ# 2357535
http://come.to/woc/
  http://wlug.westbo.se/

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GSS/CS/P d(++,--)>--- s-: a--- C(,!) UL+++ P+++>$ L++ E-$ W++(@)
N? o?> K? w-- !O M- V? PS++(@) PE- Y? PGP?>++ t->++ 5?>+++ X+ R-
tv->! b+>+++ DI++ D+ G e+>+++$ h-->(+,) r>(+++,---) y+>** 
--END GEEK CODE BLOCK--




Re: Script-fu crashes

2000-07-20 Thread Guillermo S. Romero / Familia Romero

>> it via /proc, so check you have compiled and enabled). FreeBSD, if not does
>> something like that, should too (in the same way that Linux and FreeBSD
>> share the idea of virtual consoles, which is great).
>FreeBSD doesn't need that, as it doesn't crash nearly as often as linux
>;->

I never have used it for for freezes (yet). Always as fast reboot or
experiment (like today playing with RAID... hot reconstruction, cool).

>

Why?

GSR
 




Re: Script-fu crashes

2000-07-20 Thread Marc Lehmann

On Thu, Jul 20, 2000 at 04:24:26PM +0200, "Guillermo S. Romero / Familia Romero" 
<[EMAIL PROTECTED]> wrote:
> it via /proc, so check you have compiled and enabled). FreeBSD, if not does
> something like that, should too (in the same way that Linux and FreeBSD
> share the idea of virtual consoles, which is great).

FreeBSD doesn't need that, as it doesn't crash nearly as often as linux
;->



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



Re: Script-fu crashes - with ICQ

2000-07-20 Thread Guillermo S. Romero / Familia Romero

>Does somebody know about a possibility to separate these two things,
>without uninstalling ICQ?

Change the extension association, whatever the way that is done now (my last
Windows is NT with plain Explorer). I suppose (but I dunno) that Gimp will
be able to live with that. I would ask the Win32 developers for help, so
maybe they can do something (like using another extension via mv in the
makefile... well, MS C project config files and ren).

GSR
 




Re: Script-fu crashes

2000-07-20 Thread Guillermo S. Romero / Familia Romero

>> Did you tried the SUBmarine tactic? Alt+SysReq+S (sync disks), wait until
>windows?  linux?  frebsd?

Sorry, Linux (option in 2.2 and up, can be disabled, even if you compiled,
it via /proc, so check you have compiled and enabled). FreeBSD, if not does
something like that, should too (in the same way that Linux and FreeBSD
share the idea of virtual consoles, which is great).

With MS Windows... well, no comments, each day I wonder where is the
console, or the virtual desktop, or why I can not have two GUI at the same
time. The best you can do with MS Windows is Ctrl+Alt+Del and pray so it
allows you to close the app or something. ;]

GSR
 




Re: Script-fu crashes - with ICQ

2000-07-20 Thread Hago Ziegler

Hi, once more,

> what icq are you using?  i have icqjava and have never had a problem.

Do you run it on a Linux machine? I didn't know, that this is possible.

Hago




Re: Script-fu crashes

2000-07-20 Thread Alan Buxey

hi,

On Thu, 20 Jul 2000, clemensF wrote:

> > Guillermo S. Romero / Familia Romero:
> 
> > Did you tried the SUBmarine tactic? Alt+SysReq+S (sync disks), wait until
> 
> windows?  linux?  frebsd?

this is Linux - but only if the SysReq function has been compiled into the
kernel options (when building the kernel, its practically the last option
to choose)

alan




Re: Script-fu crashes - with ICQ

2000-07-20 Thread Hago Ziegler

Hi,

> what icq are you using?

I don't know, it's on Win98.

Hago




Re: Script-fu crashes - with ICQ

2000-07-20 Thread Rebecca Jean Pedersen

what icq are you using?  i have icqjava and have never had a problem.



Re: Script-fu crashes - with ICQ

2000-07-19 Thread Hago Ziegler

Hi all,

I read several times about script-fu to crash because of "nobody knows".

4 days ago I installed ICQ and since then my script-fus are crashing
too. Not all the time, but sometimes.

The reason:

ICQ uses *.SCM as a fileending. Any music files, but without them, ICQ
doesn't work. I  just shutdown ICQ when I work with gimp, but I'm not
really sure if it doesn't affect script-fu anyway.

Does somebody know about a possibility to separate these two things,
without uninstalling ICQ?

Hago




Re: Script-fu crashes

2000-07-19 Thread clemensF

> Guillermo S. Romero / Familia Romero:

> Did you tried the SUBmarine tactic? Alt+SysReq+S (sync disks), wait until

windows?  linux?  frebsd?

clemens



Re: Script-fu crashes

2000-07-17 Thread Guillermo S. Romero / Familia Romero

Some details to add to what Marc said:
>I've had 3 random freezes of the keyboard upon startx, with the monitor
>going black and the only way out a hard reboot. I've fiddled about with
>fsck (and been yelled at by German geeks for doing that) but something
>seems to always work to get it back. Not the same thing every time, tho.

Did you tried the SUBmarine tactic? Alt+SysReq+S (sync disks), wait until
LED and sound stop, Alt+SysReq+U (umount disks, remount read only), wait
until LED and sound stop, Alt+SysReq+B (reboot). The machine goes down quite
fast, and a lot safer than drilling holes in the ships hull (aka hit the
reset button), cos it can come up perfectly. Of course, all this works only
if the kernel is still alive.

GSR
 




Re: Script-fu crashes

2000-07-16 Thread Marc Lehmann

On Sun, Jul 16, 2000 at 09:19:09PM -0600, Kate <[EMAIL PROTECTED]> wrote:
> I recently began using the gimp - version 1.1.7, as it came with the SuSE
> 6.2 distribution (a stripped down, 1 cd version of 6.2, it appears)

Try upgrading to a recent development version of gimp, 1.1.7 is YEARS old.

> Is this version of gimp known for this problem, or could it be the linux
> distro?

Both - the latest stable version of gimp is 1.0.4, but suse put an
unstable development versiob on their distribution - doubtlessly with
large warnings that his is just an unstable development release ;)

> going black and the only way out a hard reboot. I've fiddled about with
> fsck (and been yelled at by German geeks for doing that)

fsck is usually save to use in single-user-mode, so just ignore them ;)

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



Re: Script-fu...

2000-07-14 Thread Debian Linux User

Oh my!
So simple? Linux is the paradise!
Thank you very much

Marc Lehmann wrote:
> Instead of using Gimp, use ImageMagick and a command like this:
> 
> convert +append img1.ppm img2.ppm img3.ppm result.ppm
> 
> --
>   -==- |
>   ==-- _   |
>   ---==---(_)__  __   __   Marc Lehmann  +--
>   --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
>   -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
> The choice of a GNU generation   |
>  |

-- 
Marcelo Elias Del ValleUIN: 30595143
[EMAIL PROTECTED] http://tilt.8m.com MLinuxer
http://Evolution.sourceforge.net



Re: Script-fu...

2000-07-14 Thread Marc Lehmann

On Fri, Jul 14, 2000 at 06:10:16PM -0300, Debian Linux User <[EMAIL PROTECTED]> 
wrote:
> Hi,
> 
> (http://www.blender.nl), witch saves each frame in a diferent file. All
> frames have the same size. I need to load all N images and (where N is a
> number I don't know) and make, with them, a single one. Each frame needs

Instead of using Gimp, use ImageMagick and a command like this:

convert +append img1.ppm img2.ppm img3.ppm result.ppm

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



Re: script-fu-selection-round only with restart?

2000-06-15 Thread Alan Buxey

hi,

> First, I think you are right, when I let the first picture open, the 
>fu-selection-round works still on the first picture.  Only when I close the first 
>one, I will get the error.  But how do I get around it?  And which "0" are you 
>referring to?

it'll be the '0' that fails the script. What you need to do is, at the
beginning, when you make the image, give it a variable

something like

(set! myImage (car (gimp-new-image etc etc)))

then myImage will be your image number that you can then play with - as i
said, i havent had much luck in this field so far and my script was
sculpted from using the perl-fu console (it throws out the numbers of each
task)

alan




Re: script-fu-selection-round only with restart?

2000-06-15 Thread Thomas Stolt

Alan,

thanks very much!

However, I need a little "fill in" on this:

First, I think you are right, when I let the first picture open, the 
fu-selection-round works still on the first picture.  Only when I close the first one, 
I will get the error.  But how do I get around it?  And which "0" are you referring to?


thanks in advance

Thomas


___
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
[EMAIL PROTECTED], 8MB Speicher, Verschluesselung - http://freemail.web.de




Re: script-fu-selection-round only with restart?

2000-06-15 Thread Alan Buxey

hi,


> The strange thing here is, that I can call this script once (it just gives me a 
>white image with a rounded selection), but when I call this script again, I get the 
>error message:
> 
> Script-Fu Error
> ERROR: Procedural database execution failed:
> (gimp_selection_bounds 0)
> 
> Only when I restart gimp, I can use it again!

this is because you have hardcoded the image/layer as '0'.

if you keep running GIMP, then the next image you process will not be 0,
but 1,2,3 etc etc

I have had to use hardcoded numbers in my script until I can find out why
my variables arent passed through...this means I have to quit after using
my script (which is okay because its a cron batch job anyway!) but
I'd prefer to have it working.

alan




Re: script-fu prog for tutorial

2000-06-07 Thread Mike Markowski

Hi all,

One more quick note on the script-fu function that follows
a tutorial (more info at URL below).  I have been urged to
link to the file from a web page rather than just point to the
file itself.  So, please use

http://udel.edu/~mm/gimp/

to get to my rather measly gimp page...

Thanks!
Mike



Re: script-fu: applying a mask

2000-06-06 Thread Marc Lehmann

On Tue, Jun 06, 2000 at 11:03:58AM -0400, Mike Markowski <[EMAIL PROTECTED]> wrote:
> What are the Scheme calls to apply a mask to its layer?

the pdb call you want is gimp_image_remove_layer_mask

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



Re: script-fu prog for tutorial

2000-06-06 Thread Alan Buxey

Hi,

> I've just finished writing a Scheme script-fu program that mostly
> follows along with the tutorial at
> 
>   http://www.gimp.org/tut-sum1.html
> 
> I discovered that script-fu is easy, but finding documentation isn't.
> To that end, I've tried to thoroughly comment my program at
> 
>   http://udel.edu/~mm/gimp/framed-glass-text.scm

great! I'm going to have to have a look at that! I've been trying to write 
a Scheme script-fu, but my result works - however I cant use it as a menu
ption, or from a command line (I really want to do shell batch processing)
 
> Also, for those not interested in script-fu (but who probably aren't
> reading this now, anyway!), the program might be interesting enough to 
> use as is.

well, i'll certainly be having a look! You are right about the current
level of script-fu documentation...and getting the current scipt-fu's
and sets under your command can be quite painful :-|

alan




Re: Script Fu ?

2000-05-10 Thread alex

Hi,

Per Pettersson wrote:

> Hi all!
>
> I am kinda new to the gimp and I wonder how do I install Script-Fu's, and if
> that is possible. If it is, where can I find them for download?

You can either use 'gimptool' command:
$gimptool --install-script 
or simple copy script to "~/.gimp1-1/scripts" directory (on stable version it
"~/.gimp/scripts") :)
To find plugins look at
registry.gimp.org
and for announcements on
www.gimp.org

Good luck!
Alex

--
// Only the fireborn understand blue.



__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com



Re: script-fu developers ?

2000-04-07 Thread Ingo Ruhnke

"Christian Schlange" <[EMAIL PROTECTED]> writes:

> Is this list the right place for discussions about script-fu-development
> (in scheme and perl) ?

Jupp.

-- 
ICQ: 59461927http://pingus.seul.org | 
Ingo Ruhnke <[EMAIL PROTECTED]> http://home.pages.de/~grumbel/ |
'



Re: script-fu developers ?

2000-04-06 Thread Marc Lehmann

On Wed, Apr 05, 2000 at 02:27:57PM +0200, Christian Schlange 
<[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Is this list the right place for discussions about script-fu-development
> (in scheme and perl) ?

Yes, although you cannot do script-fu development in perl yet ;)


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



Re: Script-Fu beginner...

2000-04-01 Thread Ingo Ruhnke

Fábio Sato <[EMAIL PROTECTED]> writes:

> I can use a script to open the images and call another one to do the
> dirty job, passing the references to the images and to the drawables
> (like you mentioned). So my problem is this: how can I open a file
> (within a script) and get a reference to the background layer ?

Something like this should work (untested):

(define (my-get-background-layer image)
(let ((layers (cadr (gimp-image-get-layers image
  (aref layers (- (length layers) 1

(define (do-something)
  (let* ((image (car (gimp-file-load 0 "/home/ingo/images/nasa.xcf" "nasa.xcf")))
 (background-layer (my-get-background-layer image)))
 ...))

-- 
ICQ: 59461927http://pingus.seul.org | 
Ingo Ruhnke <[EMAIL PROTECTED]> http://home.pages.de/~grumbel/ |
'



Re: Script-Fu beginner...

2000-03-31 Thread Fábio Sato

Hi Christian,

---
> .
> .
> .
> Then you get a reference to the active layer, called drawable ...
> You simple pass 'drawable' to all the functions then. Was this
> your problem ?
---

Ok, this works if you work interactively, when you open the files by
yourself and right click on the image and select the script. But my
problem is that I want it to work in batch mode, so I have to open the
images in the script.

I can use a script to open the images and call another one to do the
dirty job, passing the references to the images and to the drawables
(like you mentioned). So my problem is this: how can I open a file
(within a script) and get a reference to the background layer ?

Thanks a lot!
-- 
Fábio Sato - [EMAIL PROTECTED]



Re: Script-Fu beginner...

2000-03-30 Thread Christian Schlange

Hi Fabio,

>  I'm wondering how do I know which is the reference to the background
>  layer of a image that I've just opened. I think that my error is
>  occurring when I try to pass the drawable references to the
>  gimp-edit-copy/paste functions. I simple passed "0" (I don't know any
>  reference, so I thought that "0" would refer to first layer in the
>  stack), but it's not working...

Register the function like:

(script-fu-register
"script-fu-selection-split-image"
"/Script-Fu/Selection/Split An Image"
"description ..."
"author "
"."
"03/09/2000"
"RGB* GRAY*"
SF-IMAGE "Image" 0
SF-DRAWABLE "Drawable" 0
more parameters 

and define it as:

(define (script-fu- image drawable ... more parameters)

Then you get a reference to the active layer, called drawable ...
You simple pass 'drawable' to all the functions then. Was this 
your problem ?

Bye,
Christian 





Re: script-fu dialogs

2000-03-12 Thread [EMAIL PROTECTED]

thanks that would do it.


s@m




Re: script-fu dialogs

2000-03-11 Thread Ingo Ruhnke

"s@m" <[EMAIL PROTECTED]> writes:

> i made a script that saves an image giving it the filename.
> now i want it to either:
> 
> 1- remember the last filename i typed
> 2- give me the SAVE dialog
> 3- have a mecanism to pass a path as a layer name for example.

Something like this will give you at least a file dialog, probably not
exacly what you want, but better than nothing:  
 
(script-fu-register
"script-fu-tuxracer-save-as-rgbs"
"/Script-Fu/Tuxracer/Save Image as RGBs"
"Saves a layed image as seperated RGB images using the layer names as filenames + 
.rgb"
"Ingo Ruhnke"
"1999, Ingo Ruhnke"
"Fri Mar  3 16:00:13 2000"
"RGBA"
SF-IMAGE "Image" 0
SF-DRAWABLE "Drawable" 0
SF-FILENAME "Directory:" "/tmp/")
^^^ <- This gives you the dialog
-- 
ICQ: 59461927http://pingus.seul.org | 
Ingo Ruhnke <[EMAIL PROTECTED]> http://home.pages.de/~grumbel/ |
+



Re: Script-fu

2000-02-03 Thread Stephan Skrodzki

> Is it possible to call a bash-script from within a Script-Fu script. I

Don't know, about the scheme Script-Fu, but when you're working with gimp perl,
this should be no problem.

Regards
 Steve





Re: Script-Fu from Perl-Fu?

2000-01-27 Thread Marc Lehmann

On Thu, Jan 27, 2000 at 11:35:22AM +0100, Stephan Skrodzki 
<[EMAIL PROTECTED]> wrote:
> Does this just happen with gimp-perl or also with the scheme scripts?

This happens with anything else that calls script-fu (wether its perl,
python or c), except script-fu itself, since it does not call itself via
the PDB.

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



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-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-25 Thread Marc Lehmann

On Wed, Jan 26, 2000 at 12:27:20AM +0100, Stephan Skrodzki 
<[EMAIL PROTECTED]> wrote:
> 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.

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



Re: Script-Fu from Perl-Fu?

2000-01-25 Thread Stephan Skrodzki

> On Tue, Jan 25, 2000 at 04:25:31PM +0100, Stephan Skrodzki 
><[EMAIL PROTECTED]> wrote:
> > Gimp->script_fu_drop_shadow(0,$unsel_lay,8,8,15,"black",60,1);
> > 
> > But still the same result, the script isn't found...
> 
> Which version of gimp are you using, btw? If it's 1.0, then it indeed
> is named "script-fu-drop-shadow", and then you need to call it either like:

nope, as I wrote in the very beginning of this threat:

function/macro "shadow" not found in Gimp at 
/home/skrodzki/.gimp-1.1/plug-ins/marly-text-button line 39 (ERROR)
-
stevekist:~/mac/dokumente/Evi > gimp -v

Gdk-WARNING **: locale not supported by C library
Message: Passed serialization test

GIMP version 1.1.11
-

Regards
 Steve


 
| Stephan Skrodzki Phone: +49-621-1565435 "Nobody expects the| 
| Mannheim, Germany  Fax: +49-621-1565083  Spanish Inquisition!" |
| Mobile: +49-173-2003491|
 




Re: Script-Fu from Perl-Fu?

2000-01-25 Thread Marc Lehmann

On Tue, Jan 25, 2000 at 04:25:31PM +0100, Stephan Skrodzki 
<[EMAIL PROTECTED]> wrote:
> Gimp->script_fu_drop_shadow(0,$unsel_lay,8,8,15,"black",60,1);
> 
> But still the same result, the script isn't found...

Which version of gimp are you using, btw? If it's 1.0, then it indeed
is named "script-fu-drop-shadow", and then you need to call it either like:

"Gimp::script-fu-drop-shadow"->(args)

or

&{"Gimp::script-fu-drop-shadow"}(args)

(see the section on "Calling Gimp Functions" in the manpage)

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



Re: Script-Fu from Perl-Fu?

2000-01-25 Thread Stephan Skrodzki

> > 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)
> 
> You need to import the ":auto"-tag from the Gimp module to get all functions
> in your current module, or otherwise you have to call it as a static method:
> 
> Gimp->script_fu_drop_shadow(...)

No, I did test both: 

use Gimp qw(:auto __);

and 

Gimp->script_fu_drop_shadow(0,$unsel_lay,8,8,15,"black",60,1);

But still the same result, the script isn't found...

Regards
 Steve

 
| Stephan Skrodzki Phone: +49-621-1565435 "Nobody expects the| 
| Mannheim, Germany  Fax: +49-621-1565083  Spanish Inquisition!" |
| Mobile: +49-173-2003491|
 




Re: Script-Fu from Perl-Fu?

2000-01-25 Thread Marc Lehmann

On Mon, Jan 24, 2000 at 04:39:01PM +0100, Stephan Skrodzki 
<[EMAIL PROTECTED]> wrote:
> 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)

You need to import the ":auto"-tag from the Gimp module to get all functions
in your current module, or otherwise you have to call it as a static method:

Gimp->script_fu_drop_shadow(...)

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



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-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-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   |
 |



Re: script-fu

2000-01-22 Thread Guillermo S. Romero / Familia Romero

>click OK, it disappears instead of working, and leaves me the message: Too few
>arguments. I don't understand it, because I did it just like in the (german)
>GUM.

It is not compatible with Gimp 1.1, only 1.0. I had problems like that, it
means that a function now requires more parameters than old version (and
your script uses it). Use PDB to investigate. Try to input the script by
hand and watch where it dies.

>Does anybody know a reliable tutorial for script-fu?
>Or would somebody be so kind and have a look on the script?

Sorry, busy, exams in a week, I can not now. >:|
http://google.com/ and search. ?:[
Maybe other could help, I am sure somebody had to port all old scripts to
new versions, ask in devel list.

GSR
 



Re: script-fu

2000-01-21 Thread Hago Ziegler

Hi Guillermo, Uwe,

Thank you for helping,
 
after having checked all that you consulted, I can find the two concerned
scripts under Xtns in the toolbox and in the DB Browser.

I also can get the Parameter-Boxes on the Desktop, and one Script (a
very simple one) even works, but when I do some settings on the other one and
click OK, it disappears instead of working, and leaves me the message: Too few
arguments. I don't understand it, because I did it just like in the (german)
GUM.

Does anybody know a reliable tutorial for script-fu?
Or would somebody be so kind and have a look on the script?

Hago



Re: script-fu

2000-01-21 Thread Uwe Koloska

On Don, 20 Jan 2000 wrote the famous Guillermo S. Romero / Familia Romero:
>>in chapter 38 of the "Gimp User Manual" I found an example for how to do a
>>Script-fu. For the beginning I copied the example-script to
>>/root/.gimp-1.1/scripts/ , made "refresh" and tried to find it in the DB
>>Browser. But there was nothing. I copied it also to
>>/usr/local/share/gimp/scripts/, with the same result.
>
>Have you checked the source of the script? Maybe it is wrongly typed or is
>not compatible with Gimp 1.1.
>
>>What am I doing wrong. 
>>The "Gimp User Manual" relates to Gimp1.0.4. I run Gimp 1.1.15.
>
>Maybe that is the problem. I would try to copy a script that works to
>$HOME/.gimpdir/scripts/ (and remove it from original place, well, better
>rename it, so you do not lose it) and then see if it appears or not.
>
>Also check that your config knows where to search. But I doubt that is the
>problem, cos if you place them with files that load but it does not... btw,
>is the file readable?
>

And if your gimp is running while you move files, try to reload the scripts ;-)

And like Guilllermo stated
"Thou must not run as root!"

Uwe

-- 
mailto:[EMAIL PROTECTED]
http://rcswww.urz.tu-dresden.de/~koloska/
----
right now the web page is in german only
but this will change as time goes by ;-)



Re: script-fu

2000-01-20 Thread Guillermo S. Romero / Familia Romero

>in chapter 38 of the "Gimp User Manual" I found an example for how to do a
>Script-fu. For the beginning I copied the example-script to
>/root/.gimp-1.1/scripts/ , made "refresh" and tried to find it in the DB
>Browser. But there was nothing. I copied it also to
>/usr/local/share/gimp/scripts/, with the same result.

Have you checked the source of the script? Maybe it is wrongly typed or is
not compatible with Gimp 1.1.

>What am I doing wrong. 
>The "Gimp User Manual" relates to Gimp1.0.4. I run Gimp 1.1.15.

Maybe that is the problem. I would try to copy a script that works to
$HOME/.gimpdir/scripts/ (and remove it from original place, well, better
rename it, so you do not lose it) and then see if it appears or not.

Also check that your config knows where to search. But I doubt that is the
problem, cos if you place them with files that load but it does not... btw,
is the file readable?

BTW, does anybody want to provide a destructive script so you can learn that
the root account is only to install things and other administrative tasks,
never to run them? After watching how all your data (entire HDs) goes away I
guess you will get why you should use an user account.

GSR
 



Re: script-fu examples

2000-01-18 Thread Wandered Inn

Michael Johnson wrote:
> 
> you need to have the output filename at the end.
> that should work, try this:
> 
> 'convert -rotate 90 14.jpeg 14.jpeg'

That did it thanks.

> 
> also, the script-fu stuff you were looking for is in the GIMP User Manual
> (manual.gimp.org) There are two chapters in there and I think they are the
> same as the two limks that are (were - now broken) in gimp.org
> 
> Michael Johnson
> 
> On Tue, 18 Jan 2000, Wandered Inn wrote:
> 
> > Actually, I mis-spoke.  It did not work.  convert complains:
> >
> > convert: Missing an image file name [No such file or directory]
> >
> > Using 'convert -rotate 90 14.jpeg'
> >
> > and 14.jpeg is in the current directory.
> >
> > Suggestions??
> 

--
Until later: Geoffrey   [EMAIL PROTECTED]

I'm afraid there will be more problems with W2K then there were with
Y2K...



Re: script-fu examples

2000-01-18 Thread Michael Johnson

you need to have the output filename at the end.
that should work, try this:

'convert -rotate 90 14.jpeg 14.jpeg'

also, the script-fu stuff you were looking for is in the GIMP User Manual
(manual.gimp.org) There are two chapters in there and I think they are the
same as the two limks that are (were - now broken) in gimp.org

Michael Johnson

On Tue, 18 Jan 2000, Wandered Inn wrote:

> Actually, I mis-spoke.  It did not work.  convert complains:
> 
> convert: Missing an image file name [No such file or directory]
> 
> Using 'convert -rotate 90 14.jpeg'
> 
> and 14.jpeg is in the current directory.
> 
> Suggestions??
 



Re: script-fu examples

2000-01-18 Thread Wandered Inn

Actually, I mis-spoke.  It did not work.  convert complains:

convert: Missing an image file name [No such file or directory]

Using 'convert -rotate 90 14.jpeg'

and 14.jpeg is in the current directory.

Suggestions??


Carl-Johan Sveningsson wrote:
> 
> > I've followed the various links from gimp.org to the various script-fu
> > sites.  Many are non-existent or broken.  I'm trying to find out how I
> > can create a simple batch script.  All I need to do is rotate some
> > images 90 degrees.  But, it's about 150 images and for obvious reasons,
> > a non-interactive solution will same much time.
> >
> > Anyone have any pointers as to where I can at least find a listing of
> > the available commands for script-fu scripts?
> 
> Eh, how about using ImageMagick and do a simple:
> 
> for i in *.jpg
> do
> convert -rotate 90 "$i"
> done
> 
> And you should be done with it! :-)
> It's great, I simply love IM for scripting...
> No real reason that I can see to start up gimp for that...
> 
> /WoC
> 
>  "fast det e klart.. lira rysk roulette
>   med en haubitz vore rätt tufft..."
> -- hört från Steamshark
> 
> --o--o-oOo-o--o--
> 
>   Carl-Johan Sveningsson
>   HHGTTG researcher 96339
> [EMAIL PROTECTED]
>  +46 370 99112
>   ICQ# 2357535
> http://come.to/woc/
>   http://wlug.westbo.se/

--
Until later: Geoffrey   [EMAIL PROTECTED]

I'm afraid there will be more problems with W2K then there were with
Y2K...



Re: script-fu examples

2000-01-18 Thread Wandered Inn

Thanks, worked like a charm.

Carl-Johan Sveningsson wrote:
> 
> > I've followed the various links from gimp.org to the various script-fu
> > sites.  Many are non-existent or broken.  I'm trying to find out how I
> > can create a simple batch script.  All I need to do is rotate some
> > images 90 degrees.  But, it's about 150 images and for obvious reasons,
> > a non-interactive solution will same much time.
> >
> > Anyone have any pointers as to where I can at least find a listing of
> > the available commands for script-fu scripts?
> 
> Eh, how about using ImageMagick and do a simple:
> 
> for i in *.jpg
> do
> convert -rotate 90 "$i"
> done
> 
> And you should be done with it! :-)
> It's great, I simply love IM for scripting...
> No real reason that I can see to start up gimp for that...
> 
> /WoC
> 
>  "fast det e klart.. lira rysk roulette
>   med en haubitz vore rätt tufft..."
> -- hört från Steamshark
> 
> --o--o-oOo-o--o--
> 
>   Carl-Johan Sveningsson
>   HHGTTG researcher 96339
> [EMAIL PROTECTED]
>  +46 370 99112
>   ICQ# 2357535
> http://come.to/woc/
>   http://wlug.westbo.se/

--
Until later: Geoffrey   [EMAIL PROTECTED]

I'm afraid there will be more problems with W2K then there were with
Y2K...



Re: script-fu examples

2000-01-18 Thread Carl-Johan Sveningsson

> I've followed the various links from gimp.org to the various script-fu
> sites.  Many are non-existent or broken.  I'm trying to find out how I
> can create a simple batch script.  All I need to do is rotate some
> images 90 degrees.  But, it's about 150 images and for obvious reasons,
> a non-interactive solution will same much time.
> 
> Anyone have any pointers as to where I can at least find a listing of
> the available commands for script-fu scripts?

Eh, how about using ImageMagick and do a simple:

for i in *.jpg
do
convert -rotate 90 "$i"
done

And you should be done with it! :-)
It's great, I simply love IM for scripting...
No real reason that I can see to start up gimp for that...

/WoC

 "fast det e klart.. lira rysk roulette
  med en haubitz vore rätt tufft..."
-- hört från Steamshark

--o--o-oOo-o--o--

  Carl-Johan Sveningsson
  HHGTTG researcher 96339 
[EMAIL PROTECTED]
 +46 370 99112
  ICQ# 2357535
http://come.to/woc/
  http://wlug.westbo.se/



Re: Script-fu and gimp-1.1.11

1999-11-28 Thread Marc Lehmann

On Sun, Nov 28, 1999 at 09:04:18PM +0100, Carl-Johan Sveningsson <[EMAIL PROTECTED]> 
wrote:
> It's not just you. I have it too, at least with my own scripts...
> Someone know what it's about?

Yes, many functions have been renamed to be more consistent (e.g.
gimp_image_disable_undo is now gimp_image_undo_disable).

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



Re: Script-fu and gimp-1.1.11

1999-11-28 Thread nigel

There was some discussion on the developers list about undo that you may
want to take a look at. However I dont know if it answers your question
as Im not a programmer and therefor dont understand what there on about.

http://www.mail-archive.com/gimp-developer%40scam.xcf.berkeley.edu/

As for things being broken past and present, well thats just part and
parcel of the developers version isnt it? ;)

Carl-Johan Sveningsson wrote:
> 
> It's not just you. I have it too, at least with my own scripts...
> Someone know what it's about?
> 
> /WoC
> 
> On Mon, 22 Nov 1999, alex wrote:
> 
> > Hi all,
> > Is it just me, or does gimp-1.1.13 break some parts of script-fu? Things
> > like the excellent wax-text and wax-seal scripts don't work any more, with
> > errors like:
> >
> >  Script-Fu Error
> >  ERROR: unbound variable (errobj gimp-image-disable-undo)
> >
> > I assume the script tries to diable undos [why would it do that?], but
> > the gimp isn't too happy with that. Here are my vital statistics:
> > gimp-1.1.13, GNU/Linux 2.2.10 [Intel], SuSE 6.2. Made with './configure
> > --with-included-gettext && make && make install'
> >
> > Also, can someone tell me, did something break between 1.1.7 and 1.1.12
> > that made the SOTA Chrome script not work properly? It produced really
> > flat looking logos.
> >
> >
> > --
> > ||
> > |See my website at http://www.linux66.freeserve.co.uk|
> > ||
> >
> >
> >
> 
>  "fast det e klart.. lira rysk roulette
>   med en haubitz vore rätt tufft..."
> -- hört från Steamshark
> 
> --o--o-oOo-o--o--
> 
>   Carl-Johan Sveningsson
>   HHGTTG researcher 96339
> [EMAIL PROTECTED]
>  +46 370 99112
>   ICQ# 2357535
> http://come.to/woc/
>   http://wlug.westbo.se/



Re: Script-fu and gimp-1.1.11

1999-11-28 Thread Carl-Johan Sveningsson

It's not just you. I have it too, at least with my own scripts...
Someone know what it's about?

/WoC

On Mon, 22 Nov 1999, alex wrote:

> Hi all,
> Is it just me, or does gimp-1.1.13 break some parts of script-fu? Things
> like the excellent wax-text and wax-seal scripts don't work any more, with
> errors like:
>  
>  Script-Fu Error
>  ERROR: unbound variable (errobj gimp-image-disable-undo)
> 
> I assume the script tries to diable undos [why would it do that?], but
> the gimp isn't too happy with that. Here are my vital statistics:
> gimp-1.1.13, GNU/Linux 2.2.10 [Intel], SuSE 6.2. Made with './configure
> --with-included-gettext && make && make install'
> 
> Also, can someone tell me, did something break between 1.1.7 and 1.1.12
> that made the SOTA Chrome script not work properly? It produced really
> flat looking logos.
> 
> 
> --
> ||
> |See my website at http://www.linux66.freeserve.co.uk|
> ||
> 
> 
> 


 "fast det e klart.. lira rysk roulette
  med en haubitz vore rätt tufft..."
-- hört från Steamshark

--o--o-oOo-o--o--

  Carl-Johan Sveningsson
  HHGTTG researcher 96339 
[EMAIL PROTECTED]
 +46 370 99112
  ICQ# 2357535
http://come.to/woc/
  http://wlug.westbo.se/