RSS/Atom feed Twitter
Site is read-only, email is disabled

Arrays in Scheme script-fu with gimp?

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.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Arrays in Scheme script-fu with gimp? freeze@free.fr 11 Oct 18:58
  Arrays in Scheme script-fu with gimp? Jeff Trefftzs 12 Oct 05:48
freeze@free.fr
2002-10-11 18:58:56 UTC (over 21 years ago)

Arrays in Scheme script-fu with gimp?

HI,
I try to develop a plug ins to gimp in scheme. I need to get a layer by it's name.

I didn't find a direct function to do that. If you know one, could you temll it to me? But, I found the function called: gimp-image-get-layers() but, the returned value are in fact 2 values, an array and the number of item of this array.

I success to separate the number and the array.

But I don't know how to access the array, I tried to use car and cdr functions, but, I still can't get the values in the array which seems different than a list. Could you tell me by an example how to get one entry in a Array in s scheme?

I'm a beginner in scheme, I only know others languages like C/C++/PHP... I understood the main lines of this languages, but I didn't find informations about arrays.

Thanks;
freeze@free.fr
---

Jeff Trefftzs
2002-10-12 05:48:12 UTC (over 21 years ago)

Arrays in Scheme script-fu with gimp?

To access an array in scheme, use (aref array index).

I have posted my most-used scheme reference at

http://trefftzs.topcities.com/siod.html

since it is no longer where it used to be. You may want to look at it.

HTH,