Re: [Gimp-developer] Script-Fu error ... GUI shows different image selection than what script gets

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

 



Roland Roberts (roland@xxxxxxxxxxxxx) wrote:
> >>>>> "Simon" == Simon Budig <Simon.Budig@xxxxxxxxxxx> writes:
> 
>     Simon> I can reproduce this behaviour and I think it is a bug.
>     [...]
> 
>     Simon> To work around this: You could use an invalid image ID (for
>     Simon> example -1) as the default value. So you can easily check
>     Simon> if this is a real image ID or the default value. You could
>     Simon> for example query (gimp-images-list) for the ID of the
>     Simon> image. But I think this behaviour should be fixed.
> 
> Hmmm, but how can I tell which image is currently "active."  There is
> gimp-image-active-drawable to find which layer is active.  But if I
> have more than one image open (not going to happen very often in my
> case, but sometimes...) just looking in gimp-images-list won't help.

You cannot. There is no real concept of a "active" image. This is the
primary reason, why there is no "save" entry in the toolbox menu.

If you register your script in the context menu of the image (<Image>)
you always get the image/drawable the user operates on as the first
parameter.

Bye,
        Simon
-- 
      Simon.Budig@xxxxxxxxxxx       http://www.home.unix-ag.org/simon/


[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