[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gimp-user
Subject:    Re: [Gimp-user] Script-fu: What does gimp-image-list return?
From:       Volker Lenhardt <volker.lenhardt () uni-essen ! de>
Date:       2002-08-22 21:29:39
[Download RAW message or body]

I found it out for myself. There you try for hours and are getting nearly mad 
and a few minutes after the cry for help it's all obvious: aref!

But the console's output to gimp-image-list stays to be somewhat enigmatic to 
me.

Greetings from Volker

Am Donnerstag, 22. August 2002 21:33 schrieb Volker Lenhardt:
> Hello again,
>
> I want to reference all open images by ID. So I stumbled across
> "gimp-image-list" and read in the PDB that it returns the number of open
> images as number and their IDs as array.
>
> I hopefully opened three images and typed (gimp-image-list) in the
> script-fu console. The output was: (3 #(0 1 2)#3"000000"). What does it
> mean?
>
> I can see that there are 3 images with the IDs 0, 1, 2. But what's the
> rest? Obviously it's the amount again with two zeros for each open image.
> But what for? And most important: how do I reference the IDs from within a
> script? I tried some list, some vector, some array functions, with no
> avail, nearly all of them returned errors. The only information I could get
> was with (length (cadr (gimp-image-list))). It returned 3.
>
> Where can I find an annotated list of valid script-fu functions? The list I
> get with apropos in the console leaves me helpless. Even
> (array? (cdr (gimp-image-list))) or
> (array? (cadr (gimp-image-list)))
> resulted in ERROR: unbound variable (errobj array?).
>
> Everything will turn good. Volker

-- 
Volker Lenhardt
Am Spinnweg 19, 45894 Gelsenkirchen
Tel.: 0209-30213 - Fax: 0209-390437
Email: volker.lenhardt@uni-essen.de
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic