Re: [Gimp-user] How to select whole layer and only layer

2009-10-20 Thread Ilya Zakharevich
On 2009-10-18, Adam Majewski  wrote:
>  I would like to know how to make selection for whole layer
>  and only area of layer.
>  (should it be named "layer to selection"?)

Google for layer-select.scm and put it into your ~/.gimp/scripts (sp?)
directory.

Hope this helps,
Ilya

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] How to select whole layer and only layer

2009-10-20 Thread photocomix
This question show also why   Select/All may be confusing ;  the meaning of
"All" seems a quiz:

What the heck Select/All will select ?

1) "all" inside the current layer boundary
2) "all" inside image boundary
3) "all" inside canvas boundary

as  guess  1) looks good as the others ,even more probable, but will be a
wrong answer

Maybe adding another option as "Select/All in active layer"   
would help to make concept clear and be of some practical utility


On Tue, Oct 20, 2009 at 10:40 AM, Adam Majewski  wrote:
>>
>> Dnia Tue, 20 Oct 2009 09:29:26 +1030
>> David Gowers <00a...@gmail.com> napisal(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.
>

-- 
photocomix (via www.gimpusers.com)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] How to select whole layer and only layer

2009-10-19 Thread David Gowers
On Tue, Oct 20, 2009 at 10:40 AM, Adam Majewski  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
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] How to select whole layer and only layer

2009-10-19 Thread Adam Majewski

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))

 Thanks for answer,
 kind regards!

 Pozdrawiam,
 Adam.

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] How to select whole layer and only layer

2009-10-19 Thread David Gowers
On Mon, Oct 19, 2009 at 7:07 AM, Adam Majewski  wrote:
>
>
>  Hi there!
>
>  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)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] How to select whole layer and only layer

2009-10-19 Thread Adam Majewski


 Hi there!

 I would like to know how to make selection for whole layer
 and only area of layer.
 (should it be named "layer to selection"?)

 I know that this can be done with rectangle selection,
 and with use of zoom this will give correct effect,
 but it will take some (too much imho) time for this operation.

 It is not so simply to pres ctrl+a, but it should be in my opinion.
 
 After select region of layer i would like to make shrink,
 border or other things of this selection.


 The process and effect i have now:

 background is 1024x768
 layer_1 is 100x100 in 1/3 in width and height
 selecting layer_1 from layers
 ctrl+a
 shrink selection by 3 px
 if 'shrink selection from image border' is selected
  then i see effect, but it is from image border, not layer border
  else i don't see any effect of shrink
 

 How to do it simple, easy and fast to select area of layer?
 Without need of zooming for rectangle selection for small layers...
 


 Kind regards!

 Pozdrawiam,
 Adam.

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user