Get currently active image in python

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

I've been developing a plugin for my wife for her photography business.  I'm using GTK and sqlite successfully in the plugin.

I'm at a part where I need to be able to find out the currently active image (the image that is selected in gimp).
I have tried:
activeImage = gimp.image_list()[0] 

but this only returns the most recently opened image, and not the currently selected image in gimp.  Is there a way to get the currently selected image from gimp from within python?

thanks!

_______________________________________________
gimp-developer-list mailing list
gimp-developer-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gimp-developer-list

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux