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

question

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.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

question Steven Howe 30 Mar 21:10
  question Manish Singh 30 Mar 21:16
   question Steven Howe 30 Mar 21:40
    question Joao S. O. Bueno Calligaris 30 Mar 22:21
Steven Howe
2007-03-30 21:10:15 UTC (almost 18 years ago)

question

pdb.gimp_get_image_list()
returns a list of ids, which are 32bit integers, not a list of images. I know this as I tried in a
pygimp console (with two images open): ------------------------
( listLen, theList) = pdb.gimp_image_list() print listLen
2
print theList
(3,2)
for item in theList:
print pdb.gimp_image_get_filename( item )

Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/gtkcons.py", line 267, in run exec cmd in self.namespace
File "", line 2, in ?
TypeError: wrong parameter type

-------------------- The blurb calls the return value (number of images, list of image_ids). So, what is the method to resolve image_id to an 'image' ?

Thanks, Steven Howe

Manish Singh
2007-03-30 21:16:26 UTC (almost 18 years ago)

question

On Fri, Mar 30, 2007 at 12:10:15PM -0700, Steven Howe wrote:

pdb.gimp_get_image_list()
returns a list of ids, which are 32bit integers, not a list of images. I

Use gimp.image_list() instead, which returns a list of Image objects.

-Yosh

Steven Howe
2007-03-30 21:40:56 UTC (almost 18 years ago)

question

Thanks Manish;
next question, where is the list of 'gimp' calls? the pdb didn't report this item. Under linux, In an ordinary terminal when I run python and import gimp, and type (help gimp) the process terminates with an error messgae. Is there a list of 'gimp' calls some where?

Thanks Steven Howe

Manish Singh wrote:

On Fri, Mar 30, 2007 at 12:10:15PM -0700, Steven Howe wrote:

pdb.gimp_get_image_list()
returns a list of ids, which are 32bit integers, not a list of images. I

Use gimp.image_list() instead, which returns a list of Image objects.

-Yosh

Joao S. O. Bueno Calligaris
2007-03-30 22:21:29 UTC (almost 18 years ago)

question

On Friday 30 March 2007 16:40, Steven Howe wrote:

Thanks Manish;
next question, where is the list of 'gimp' calls? the pdb didn't report this item. Under linux, In an ordinary terminal when I run python and import gimp, and type (help gimp) the process terminates with an error messgae. Is there a list of 'gimp' calls some where?

Thanks Steven Howe

Hi Steven
you have to open the phython consoel from withn the GIMP to be able to explore the gimp module.

Unfortunatelly tehre is no docuemtnation of the methods and properties available under gimp., or image objects, drawable objects other than python-fu source code, or exeperimenting with "dir" from within a python console started withn the GIMP.

js ->

Manish Singh wrote:

On Fri, Mar 30, 2007 at 12:10:15PM -0700, Steven Howe wrote:

pdb.gimp_get_image_list()
returns a list of ids, which are 32bit integers, not a list of images. I

Use gimp.image_list() instead, which returns a list of Image objects.

-Yosh