Hammer Selection Tool: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Rotate Mode: tip template)
(cleanup + additional options)
Line 2: Line 2:
[[Image:mt-selection.png|float|left]]
[[Image:mt-selection.png|float|left]]


The '''Selection Tool''' allows you to accomplish a number of things. It is used to select, resize, rotate, shear, and move objects.
The '''Selection Tool''' is used to accomplish a number of things. It is used to ''select'', ''move'', ''resize'', ''rotate'', and ''shear'' objects.


=== Selecting Objects ===
== Selecting objects ==
[[Image:Selection_Box.png|right]]
To select an object, click once on the object in any view window. To select multiple objects, drag a box around the items in any 2D View and press the <Enter> key. The selection box can be resized by dragging the selection handles before pressing <Enter>. The following image shows the creation of a selection box:


To select an object, click once on the object in any view window. To select multiple objects, drag a box around the items in any 2D View and press the ENTER key. The selection box can be resized by dragging the selection handles before you press ENTER. The following image shows the creation of a selection box:
Add objects to the selection by holding the <Ctrl> key and clicking on other objects in any view window. Objects can likewise be removed from the selection by <Ctrl>+clicking them.


[[Image:Selection_Box.png]]
{{note|While using the '''Selection Tool''', select multiple objects by dragging a selection box around them and pressing <Enter>. If [[Hammer 2D Views Options#Automatic infinite selection in 2D windows (no <Enter>)|Automatic infinite selection]] is toggled on, pressing <Enter> is not necessary.}}


You can add objects to the selection by holding the CTRL key and clicking on other objects in any view window. Objects can likewise be removed from the selection by CTRL+clicking them.
{{tip|After clicking in a view to select an object, pressing <Page Up> and <Page Down> will cycle forwards and backwards through all objects that could possibly be selected at that position.}}{{clr}}


{{note|While using the '''Selection Tool''', you can select multiple objects by dragging a selection box around them and pressing ENTER. If [[Hammer 2D Views Options#Automatic infinite selection in 2D windows (no ENTER)|Automatic infinite selection]] is toggled on, pressing ENTER is not necessary.}}
== Moving and cloning objects ==
Move selected objects in 2D views by using the '''Selection Tool''' by clicking in the center area of the selection box, and dragging the objects to a new location.


=== Moving and Cloning Objects ===
{{tip|The cursor "arrow" keys can be used to move objects if the "nudge" option is set in the [[Hammer 2D Views Options]]. In the 3D view, objects are moved relative to the current camera position.}}


You can move selected objects using the '''Selection Tool''' by clicking in the center area of the selection box, and dragging the objects to a new location.
{{tip|Holding down <Alt> while moving an object with the mouse will ignore the current grid snap setting.}}


Cloning provides a simple way to quickly duplicate an object or group of objects. This includes both brushes and entities, and groups can contain a mixture of both. You can clone a selected object by holding down the SHIFT button and click-dragging the object.
=== Cloning ===
[[Image:cloning.png|right]]
''Cloning'' provides a simple way to quickly duplicate an object or group of objects. This includes both brushes and entities, and groups can contain a mixture of both. Objects are cloned by holding down the <Shift> key while moving the object(s).


To clone an object or group of objects:
To clone an object or group of objects:
# Switch to the '''Selection Tool'''.
# Select the object (brush, entity, or group of brushes and/or entities) to be cloned.
# Hold <Shift>, and click and drag the selected object to its new position with the left mouse button.
# While <Shift> is still being held, release the mouse button. The object has now been cloned.


# Select the '''Selection Tool'''.
{{tip|The cursor "arrow" keys can be also used in combination with the <Shift> key to clone brushes. With each press of the cursor key, another clone will be created in the direction of the nudge.}}
# Select the object (brush, entity, or group of brushes and/or entities) that you would like to clone.
# Hold SHIFT, and click and drag the selected object to its new position with the left mouse button.
# While SHIFT is still being held, release the mouse button. The object has now been cloned.


[[Image:cloning.png]]
== Transformation modes ==
[[Image:Selection_Modes.png|right]]
Clicking inside the selection box cycles through the three basic transformation modes: ''resize'', ''rotate'', and ''shear''. The handles around the selection change to reflect the current transformation mode. The following image shows the three modes for the '''Selection Tool'''. Objects can be selected and moved in any of the modes.


Clicking inside the selection box cycles through the three basic transformation modes: resize, rotate, and shear. The handles around the selection change to reflect the current transformation mode. The following image shows the three modes for the '''Selection Tool'''. Objects can be selected and moved in any of the modes.
{{tip|The [[Hammer Status Bar Toolbar|Status Bar]] shows helpful coordinates while transforming objects.}}{{clr}}


[[Image:Selection_Modes.png]]
== Resize mode ==
 
[[Image:selection_resize.png|right]]
=== Resize Mode ===
Resize mode allows objects to be resized by grabbing any corner or edge of the selected object and pulling it to the desired size. The [[Hammer Status Bar Toolbar|Status Bar]] shows the current width and height of the object while it is resized.
 
Resize mode allows you to grab any corner or edge of the selected object and resize it by pulling it to the desired size. The '''Status Bar''' shows the current width and height of the object while you resize it.


To resize an object:
To resize an object:
 
# Select the '''Selection Tool''' and left-click to select the object (brush, entity, or group of brushes and/or entities) to be resized.
# Select the '''Selection Tool''' and left-click to select the object (brush, entity, or group of brushes and/or entities) that you would like to resize.
# Click and drag one of the corner selection handles to start the resize.
# Click and drag one of the corner selection handles to start the resize.
# When the object is the size you want, release the mouse button. The object has now been resized.
# When the object is the correct size, release the mouse button. The object has now been resized.


[[Image:selection_resize.png]]
{{note|Prop (model) objects, such as a [[prop_static]], cannot be resized.}}{{clr}}


=== Rotate Mode ===
== Rotate mode ==
[[Image:selection_rotate.png|right]]
In rotate mode, grab any corner of a selected object and pull it around to rotate the object into any position desired. The status bar shows the current angle of rotation while rotating the object.


In rotate mode, you can grab any corner of a selected object and pull it around to rotate the object into any position you wish. The status bar shows the current angle of rotation while you rotate the object.
{{tip|If rotations are set to 15 degrees by default in the [[Hammer 2D Views Options]], this can be behavior will be reversed by holding <Shift> while rotating the object, and vice-versa. Pressing <Alt> while rotating will allow the object to be freely rotated, regardless of the current settings.}}
 
{{tip|If you have the rotations set to 15 degrees by default, this can be overridden by holding SHIFT while you rotate the object, and vice-versa. You can set this option in the '''Options''' dialog box under '''2D Views'''.}}


To rotate an object:
To rotate an object:


# Select the '''Selection Tool''' and left-click to select the object (brush, entity, or group of brushes and/or entities) that you would like to rotate.
# Select the '''Selection Tool''' and left-click to select the object (brush, entity, or group of brushes and/or entities) that will be rotated.
# Click inside the selection to set the transformation mode to rotate.
# Click inside the selection to set the transformation mode to rotate.
# Click and drag one of the selection handles to start the rotation.
# Click and drag one of the selection handles to start the rotation.
# When the object is rotated to the angle you want, release the mouse button. The object has now been rotated.
# When the object is rotated to the proper angle, release the mouse button. The object has now been rotated.{{clr}}


[[Image:selection_rotate.png]]
== Shear mode ==
 
[[Image:selection_shear.png|right]]
=== Shear Mode ===
Shear mode lets drag the edges of an object parallel to its surface, angling the object. For example, grab the top edge of a selected object while in ''shear'' mode to drag that edge right or left.
 
Shear mode lets drag the edges of an object parallel to its surface, angling the object. For example, if you grab the top edge of a selected object while in ''shear'' mode, you would be able to drag that edge right or left.


To shear an object:
To shear an object:


# Select the '''Selection Tool''' and left-click to select the object (brush, entity, or group of brushes and/or entities) that you would like to shear.
# Select the '''Selection Tool''' and select the object (brush, entity, or group of brushes and/or entities) to be sheared.
# Click inside the selection to set the transformation mode to shear.
# Click inside the selection to set the transformation mode to shear.
# Click and drag one of the selection handles to create the shear.
# Click and drag one of the selection handles to create the shear.
# When the object is sheared to the angle you want, release the mouse button. The object has now been cloned.
# When the object is sheared to the desired angle, release the mouse button. The object has now been sheared.{{clr}}
 
[[Image:selection_shear.png]]

Revision as of 20:51, 27 August 2006

float

The Selection Tool is used to accomplish a number of things. It is used to select, move, resize, rotate, and shear objects.

Selecting objects

Selection Box.png

To select an object, click once on the object in any view window. To select multiple objects, drag a box around the items in any 2D View and press the <Enter> key. The selection box can be resized by dragging the selection handles before pressing <Enter>. The following image shows the creation of a selection box:

Add objects to the selection by holding the <Ctrl> key and clicking on other objects in any view window. Objects can likewise be removed from the selection by <Ctrl>+clicking them.

Note.pngNote:While using the Selection Tool, select multiple objects by dragging a selection box around them and pressing <Enter>. If Automatic infinite selection is toggled on, pressing <Enter> is not necessary.
Tip.pngTip:After clicking in a view to select an object, pressing <Page Up> and <Page Down> will cycle forwards and backwards through all objects that could possibly be selected at that position.

Moving and cloning objects

Move selected objects in 2D views by using the Selection Tool by clicking in the center area of the selection box, and dragging the objects to a new location.

Tip.pngTip:The cursor "arrow" keys can be used to move objects if the "nudge" option is set in the Hammer 2D Views Options. In the 3D view, objects are moved relative to the current camera position.
Tip.pngTip:Holding down <Alt> while moving an object with the mouse will ignore the current grid snap setting.

Cloning

Cloning.png

Cloning provides a simple way to quickly duplicate an object or group of objects. This includes both brushes and entities, and groups can contain a mixture of both. Objects are cloned by holding down the <Shift> key while moving the object(s).

To clone an object or group of objects:

  1. Switch to the Selection Tool.
  2. Select the object (brush, entity, or group of brushes and/or entities) to be cloned.
  3. Hold <Shift>, and click and drag the selected object to its new position with the left mouse button.
  4. While <Shift> is still being held, release the mouse button. The object has now been cloned.
Tip.pngTip:The cursor "arrow" keys can be also used in combination with the <Shift> key to clone brushes. With each press of the cursor key, another clone will be created in the direction of the nudge.

Transformation modes

Selection Modes.png

Clicking inside the selection box cycles through the three basic transformation modes: resize, rotate, and shear. The handles around the selection change to reflect the current transformation mode. The following image shows the three modes for the Selection Tool. Objects can be selected and moved in any of the modes.

Tip.pngTip:The Status Bar shows helpful coordinates while transforming objects.

Resize mode

Selection resize.png

Resize mode allows objects to be resized by grabbing any corner or edge of the selected object and pulling it to the desired size. The Status Bar shows the current width and height of the object while it is resized.

To resize an object:

  1. Select the Selection Tool and left-click to select the object (brush, entity, or group of brushes and/or entities) to be resized.
  2. Click and drag one of the corner selection handles to start the resize.
  3. When the object is the correct size, release the mouse button. The object has now been resized.
Note.pngNote:Prop (model) objects, such as a prop_static, cannot be resized.

Rotate mode

Selection rotate.png

In rotate mode, grab any corner of a selected object and pull it around to rotate the object into any position desired. The status bar shows the current angle of rotation while rotating the object.

Tip.pngTip:If rotations are set to 15 degrees by default in the Hammer 2D Views Options, this can be behavior will be reversed by holding <Shift> while rotating the object, and vice-versa. Pressing <Alt> while rotating will allow the object to be freely rotated, regardless of the current settings.

To rotate an object:

  1. Select the Selection Tool and left-click to select the object (brush, entity, or group of brushes and/or entities) that will be rotated.
  2. Click inside the selection to set the transformation mode to rotate.
  3. Click and drag one of the selection handles to start the rotation.
  4. When the object is rotated to the proper angle, release the mouse button. The object has now been rotated.

Shear mode

Selection shear.png

Shear mode lets drag the edges of an object parallel to its surface, angling the object. For example, grab the top edge of a selected object while in shear mode to drag that edge right or left.

To shear an object:

  1. Select the Selection Tool and select the object (brush, entity, or group of brushes and/or entities) to be sheared.
  2. Click inside the selection to set the transformation mode to shear.
  3. Click and drag one of the selection handles to create the shear.
  4. When the object is sheared to the desired angle, release the mouse button. The object has now been sheared.