Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Currently Active Image
#1
Hello all. 

So I have searched and found some info saying this may not be able to be done, but I would really like a way to infer the currently-viewed image in python-fu.

I need this since I have a plugin (think of it more as an extension in other software), that communicates with Gimp from outside.  Mostly is handles loading, saving, and exporting of image files to our pipeline.  Right now I just use:

        currentImage = gimp.image_list()[0]
        currentDrawable = pdb.gimp_image_get_active_layer(currentImage)


which works if there is either one image file open, or want to deal with the last opened.  But would really prefer to be able to have it work on whatever image is "active".  I have read there is nothing in the API that deals with the active, but are there any work-arounds?

Is there something that I am missing?

Thanks in advance,

J.
Reply


Messages In This Thread
Currently Active Image - by JBreckeen - 05-01-2024, 02:54 PM
RE: Currently Active Image - by Ofnuts - 05-02-2024, 07:33 AM
RE: Currently Active Image - by JBreckeen - 05-03-2024, 12:11 PM
RE: Currently Active Image - by Ofnuts - 05-03-2024, 09:32 PM
RE: Currently Active Image - by JBreckeen - 05-05-2024, 01:45 PM
RE: Currently Active Image - by Ofnuts - 05-05-2024, 01:56 PM
RE: Currently Active Image - by JBreckeen - 05-05-2024, 07:30 PM

Forum Jump: