Doing a select without the mouse?
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
Doing a select without the mouse? | Gary Aitken | 23 Jan 04:00 |
Doing a select without the mouse? | Ofnuts | 23 Jan 09:14 |
Doing a select without the mouse? | Gary Aitken | 23 Jan 14:41 |
Doing a select without the mouse? | Olivier | 23 Jan 14:46 |
Doing a select without the mouse? | Gary Aitken | 24 Jan 00:36 |
Doing a select without the mouse? | Steve Kinney | 24 Jan 03:18 |
Doing a select without the mouse? | Gary Aitken | 24 Jan 18:51 |
Doing a select without the mouse? | Steve Kinney | 25 Jan 00:49 |
Doing a select without the mouse? | Michael Schumacher | 23 Jan 16:47 |
Doing a select without the mouse? | Michael Schumacher | 23 Jan 16:55 |
Doing a select without the mouse? | paynekj | 24 Jan 22:52 |
Doing a select without the mouse?
Is it possible to do a rectangle select without the mouse? For example, with the rectangle tool selected, one can fill in the fields in the tool options to specify the coordinates and size of the rectangle, but I can't see a way to actually commit the operation; I don't see a "do it" button at the bottom, or an option in the tool options menu. I'm looking to get a precisely sized selection to fill into an added space. For example, when adding a strip at the top of an image, I would like to grab the top 100 pixels, flip it vertically to create a mirror image, and paste it into the expanded canvas. Am I missing something?
Thanks,
Gary
Doing a select without the mouse?
On 01/23/2013 05:00 AM, Gary Aitken wrote:
Is it possible to do a rectangle select without the mouse? For example, with the rectangle tool selected, one can fill in the fields in the tool options to specify the coordinates and size of the rectangle, but I can't see a way to actually commit the operation;
What operation? Until you click/drag on the image, there is no selection started, and the numbers you enter in the Tools options are meaningless. To give them a purpose you have to click first, which means using the mouse.
I don't see a "do it" button at the bottom, or an option in the tool options menu. I'm looking to get a precisely sized selection to fill into an added space. For example, when adding a strip at the top of an image, I would like to grab the top 100 pixels, flip it vertically to create a mirror image, and paste it into the expanded canvas. Am I missing something?
The value is "committed" when you switch to another tool.
Doing a select without the mouse?
On 01/23/13 02:14, Ofnuts wrote:
On 01/23/2013 05:00 AM, Gary Aitken wrote:
Is it possible to do a rectangle select without the mouse? For example, with the rectangle tool selected, one can fill in the fields in the tool options to specify the coordinates and size of the rectangle, but I can't see a way to actually commit the operation;
What operation? Until you click/drag on the image, there is no selection started, and the numbers you enter in the Tools options are meaningless. To give them a purpose you have to click first, which means using the mouse.
If the values are meaningless, then why do they appear in the "Tool Options" for the rectangle select? Clicking and dragging sets the values for "Position" and "Size" in the "Tool Options". These are not read-only entries; they may be set via the keyboard. If one can set them via the keyboard, it should be possible to have them take effect after entering them. They should either be read only, or should have a corresponding "Select" button which can be activated.
Doing a select without the mouse?
2013/1/23 Gary Aitken :
On 01/23/13 02:14, Ofnuts wrote:
On 01/23/2013 05:00 AM, Gary Aitken wrote:
Is it possible to do a rectangle select without the mouse? For example, with the rectangle tool selected, one can fill in the fields in the tool options to specify the coordinates and size of the rectangle, but I can't see a way to actually commit the operation;
What operation? Until you click/drag on the image, there is no selection started, and the numbers you enter in the Tools options are meaningless. To give them a purpose you have to click first, which means using the mouse.
If the values are meaningless, then why do they appear in the "Tool Options" for the rectangle select? Clicking and dragging sets the values for "Position" and "Size" in the "Tool Options". These are not read-only entries; they may be set via the keyboard. If one can set them via the keyboard, it should be possible to have them take effect after entering them. They should either be read only, or should have a corresponding "Select" button which can be activated.
To complete the selection, press Enter in the image window.
Olivier Lecarme
Doing a select without the mouse?
Von: Gary Aitken
On 01/23/13 02:14, Ofnuts wrote:
What operation? Until you click/drag on the image, there is no selection started, and the numbers you enter in the Tools options are meaningless. To give them a purpose you have to click first, which means using the
mouse.
If the values are meaningless, then why do they appear in the "Tool Options" for the rectangle select?
I think the way to give them meaning is described in the messages parts quoted here.
HTH, Michael
Doing a select without the mouse?
Von: Gary Aitken
Is it possible to do a rectangle select without the mouse?
As a matter of fact, yes.
Preconditions:
- have the Script-Fu console open - know the id of the image you want to create a selection for - read the documentation of the gimp-rect-select procedure in the procedure browser
Then, in the Script-Fu console:
(gimp-rect-select image x y width height operation feather feather-radius)
For example, assuming you've got an image with the id 1:
(gimp-rect-select 1 23 23 42 42 2 1 5)
HTH, Michael
Doing a select without the mouse?
On 01/23/13 07:46, Olivier wrote:
2013/1/23 Gary Aitken :
On 01/23/13 02:14, Ofnuts wrote:
On 01/23/2013 05:00 AM, Gary Aitken wrote:
Is it possible to do a rectangle select without the mouse? For example, with the rectangle tool selected, one can fill in the fields in the tool options to specify the coordinates and size of the rectangle, but I can't see a way to actually commit the operation;
What operation? Until you click/drag on the image, there is no selection started, and the numbers you enter in the Tools options are meaningless. To give them a purpose you have to click first, which means using the mouse.
If the values are meaningless, then why do they appear in the "Tool Options" for the rectangle select? Clicking and dragging sets the values for "Position" and "Size" in the "Tool Options". These are not read-only entries; they may be set via the keyboard. If one can set them via the keyboard, it should be possible to have them take effect after entering them. They should either be read only, or should have a corresponding "Select" button which can be activated.
To complete the selection, press Enter in the image window.
Hitting in the image window has no effect whatsoever when the rectangle tool is active. At least in my 2.8.2 version.
I tried the following:
Get focus to image window
^R to activate rectangle tool
Shift focus to Rectangle Select tool options dialog
(wm key sequence + tabs or mouse click)
Set position to 10,10
Set size to 50 x 100
Shift focus to image window (wm key sequence or mouse click)
Hit
nothing happens
Can you give me a sequence where it does work?
Thanks,
Gary
Doing a select without the mouse?
On 01/23/2013 07:36 PM, Gary Aitken wrote:
Hitting in the image window has no effect whatsoever when the rectangle tool is active. At least in my 2.8.2 version.
Ditto here. I tried it and was surprised that I could not figure out a way to make the rectangular select tool options draw a rectangular selection - it moves and resizes them all day long but only if one already exists on the canvas - as far as I can tell.
For me this is not a problem but it is kind of puzzling.
:o/
Steve
Doing a select without the mouse?
On 01/23/13 20:18, Steve Kinney wrote:
On 01/23/2013 07:36 PM, Gary Aitken wrote:
Hitting in the image window has no effect whatsoever when the rectangle tool is active. At least in my 2.8.2 version.
Ditto here. I tried it and was surprised that I could not figure out a way to make the rectangular select tool options draw a rectangular selection - it moves and resizes them all day long but only if one already exists on the canvas - as far as I can tell.
For me this is not a problem but it is kind of puzzling.
I now see how to use it, although it is awkward. But at least I can get the exact location and size I want:
1. Click in the image and drag out any rectangular selection 2. Change focus back to the tool options and set the origin and size 3. Change focus back to the image and hit
Gary
- postings
- 16
Doing a select without the mouse?
As a matter of fact, yes.
Preconditions:
- have the Script-Fu console open - know the id of the image you want to create a selection for - read the documentation of the gimp-rect-select procedure in the procedure browser
Then, in the Script-Fu console:
(gimp-rect-select image x y width height operation feather feather-radius)
For example, assuming you've got an image with the id 1:
(gimp-rect-select 1 23 23 42 42 2 1 5)
HTH, Michael
Wouldn't it make sense to take this to the next step and write a script - prompting for the required values, then assigning a keyboard shortcut?
For example:
(define (script-fu-ga2013_rect_select image drawable x y width height) (gimp-rect-select image x y width height CHANNEL-OP-REPLACE FALSE 0) (gimp-displays-flush) ; flush the display )
(script-fu-register "script-fu-ga2013_rect_select"
_"Rectangle Selection..."
"Make a rectangular selection"
"Thing"
"Thing"
"24/01/2013"
"*"
SF-IMAGE "Input Image" 0
SF-DRAWABLE "Input Drawable" 0
SF-ADJUSTMENT "x" '(0 0 10000 1 10 0 1)
SF-ADJUSTMENT "y" '(0 0 10000 1 10 0 1)
SF-ADJUSTMENT "width" '(10 0 10000 1 10 0 1)
SF-ADJUSTMENT "height" '(20 0 10000 1 10 0 1)
)
(script-fu-menu-register "script-fu-ga2013_rect_select" "/Select/")
Doing a select without the mouse?
On 01/24/2013 01:51 PM, Gary Aitken wrote:
On 01/23/13 20:18, Steve Kinney wrote:
On 01/23/2013 07:36 PM, Gary Aitken wrote:
Hitting in the image window has no effect whatsoever when the rectangle tool is active. At least in my 2.8.2 version.
Ditto here. I tried it and was surprised that I could not figure out a way to make the rectangular select tool options draw a rectangular selection - it moves and resizes them all day long but only if one already exists on the canvas - as far as I can tell.
For me this is not a problem but it is kind of puzzling.
I now see how to use it, although it is awkward. But at least I can get the exact location and size I want:
1. Click in the image and drag out any rectangular selection 2. Change focus back to the tool options and set the origin and size 3. Change focus back to the image and hit
I actually do this semi-routinely (but mostly with the similar dialogs for the Crop tool), in the process of composing images that are destined for web display at a pre-specified size: Using the "fixed aspect ratio" option lets you frame the subject decently, then cropping and resizing gives the specified dimensions.
But the procedure always starts with "some" selection (or crop area) on the canvas, which I understood to be out of bounds to the original poster's requirement.
:o)
Steve