On Tue, Oct 20, 2009 at 10:40 AM, Adam Majewski <a...@albedo.art.pl> wrote:
> Dnia Tue, 20 Oct 2009 09:29:26 +1030
> David Gowers <00a...@gmail.com> napisał(a):
>> >  I would like to know how to make selection for whole layer
>> >  and only area of layer.
>> >  (should it be named "layer to selection"?)
>> It is, in fact, named 'alpha to selection', in the layers dialog. (or
>> in the layers->transparency menu)
>  almost...
>  if i have transparency somewhere on layer then i need to make
>  additional selection.
>  (color selection clicked on transparency area with shift(add))

It's possible to script this.
Basically, you can just
1. call gimp-drawable-offsets to find the top-left corner of the active layer
2. call gimp-drawable-height and gimp-drawable-width to get the size
of the layer
3. call gimp-rect-select using the bounds you just retrieved.

The procedure browser found in the help menu can help explain how these work.
Once you've written the script and registered the function in the
appropriate place, you can give it a keyboard shortcut using the
keyboard shortcut editor.
Gimp-user mailing list

Reply via email to