Hammer Selection Tool

From Valve Developer Community
< Ru
Jump to: navigation, search
English (en)Deutsch (de)Español (es)Русский (ru)Translate (Translate)
Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article tries to comply with the alternate languages guide.
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.pngПримечание: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.pngСовет: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.pngСовет:The cursor "arrow" keys can be used to move objects if the "nudge" option is set in the Hammer 2D Views Options(en). In the 3D view, objects are moved relative to the current camera position.
Tip.pngСовет: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.pngСовет: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.pngСовет:The Status Bar(en) 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(en) 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.pngПримечание:Prop (model) objects, such as a prop_static, cannot be resized in any game except in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

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.pngСовет:If rotations are set to 15 degrees by default in the Hammer 2D Views Options(en), 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.