Hammer Selection Tool

From Valve Developer Community
Jump to navigation Jump to search
English (en)Deutsch (de)Español (es)Русский (ru)Translate (Translate)
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

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:

Selection Box.png

Add objects to the selection by holding Ctrl 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 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 Shift while moving them.

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 Shift 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 prop_static, cannot be resized in any game outside the CS:GO engine branch CS:GO engine branch.

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.