Hammer Hotkey Reference: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (Nesciuse moved page Hammer Hotkey Reference/en to Hammer Hotkey Reference without leaving a redirect: Move en subpage to basepage)
 
(77 intermediate revisions by 38 users not shown)
Line 1: Line 1:
[[Category:Level Design]]
{{LanguageBar}}
 
{{toc-right}}
=Tools=
=Tools=
{|
{| class=standard-table
| Shift+S || Pointer Tool
|{{key|Shift|S}} || [[File:mt-selection.png]] [[Hammer_Selection_Tool|Selection Tool]]
|-
|-
| Shift+G || Magnify Tool
|{{key|Shift|G}} || [[File:Hammer_magnify.png]] [[Hammer_Map_Tools_Toolbar#Magnify_Tool_Shift.2BG|Magnify Tool]]
|-
|-
| Shift+C || Camera Tool
|{{key|Shift|C}} || [[File:mt-camera.png]] [[Hammer_Camera_Tool|Camera Tool]]
|-
|-
|Shift+E || Entity Tool
|{{key|Shift|E}} || [[File:mt-entities.png]] [[Hammer_Entity_Tool|Entity Tool]]
|-
|-
| Shift+B || Block Tool
|{{key|Shift|B}} || [[File:mt-block.png]] [[Hammer_Block_Tool|Block Tool]]
|-
|-
|Shift+A || Texture Application Tool
|{{key|Shift|A}} || [[File:Hammer_ToggleTextureApplication.png]] [[Applying_Textures|Texture Application Tool]]
|-
|-
|Shift+T || Apply Current Texture
|{{key|Shift|T}} || [[File:Hammer_ApplyCurrentTexture.png]] [[Applying_Textures|Apply Current Texture (to selected brushes)]]
|-
|-
|Shift+D || Decal Tool
|{{key|Shift|D}} || [[File:mt-decal.png]] [[Hammer_Decal_Tool|Decal Tool]]
|-
|-
|Shift+O || Overlay Tool
|{{key|Shift|O}} || [[File:mt-overlay.png]] [[Hammer_Overlay_Tool|Overlay Tool]]
|-
|-
|Shift+X || Clipping Tool
|{{key|Shift|X}} || [[File:mt-clipping.png]] [[Clipping|Clipping Tool]]
|-
|-
|Shift+V || Vertex Edit Tool
|{{key|Shift|V}} || [[File:mt-vertex.png]] [[Hammer_Vertex_Tool|Vertex Edit Tool]]
|}
|}


=File Operations=
=File Operations=
{|
{| class=standard-table
|Ctrl+N || Create a new file.
|{{key|Ctrl|N}} || Create a new file.
|-
|-
|Ctrl+O || Open an existing file.
|{{key|Ctrl|O}} || Open an existing file.
|-
|-
|Ctrl+S || Save the current file.
|{{key|Ctrl|S}} || Save the current file.
|-
|-
|Alt+B || Export again.
||{{key|Alt|B}} || Export again.
|-
|-
|F9 || Run/Compile Map.
|{{key|F9}} || Run/Compile Map.
|-
|-
|Ctrl+Shift+S || Open Sound Browser.
||{{key|Ctrl|Shift|S}} || Open Sound Browser.
|}
|}


=Undo/Redo=
==Undo/Redo==
{|
{| class=standard-table
|Ctrl+Z || Undo.
|{{key|Ctrl|Z}} || Undo.
|-
|-
|Ctrl+Y || Redo.
|{{key|Ctrl|Y}} || Redo.
|}
|}


=Clipboard/Selection=
==Clipboard/Copy & Paste==
{|
{| class=standard-table
|Ctrl+C || Copy objects to clipboard (also Ctrl+Insert).
|{{key|Ctrl|C}} || Copy selected objects to clipboard (also Ctrl+Insert).
|-
|Ctrl+V || Paste objects from clipboard (also Shift+Insert).
|-
|Ctrl+X || Cut objects to clipboard (also Shift+del).
|-
|-
|Shift+Q or Esc || Clear current selections.
|{{key|Ctrl|V}} || Paste objects from clipboard to cursor location (also Shift+Insert).
|-
|-
|PgUp || Previous selection in "hit" list.
|{{key|Ctrl|Shift|V}} || Paste special.
|-
|-
|PgDn || Next selection in "hit" list .
|{{key|Ctrl|X}} || Cut selected objects to clipboard (also Shift+del).
|-
|Alt+Enter || Open up Object Properties for the currently selected objects.
|}
|}


=Grid=
=Grid=
{|
{| class=standard-table
|[ || Decrease the size of the grid.
||{{key|[}} || Decrease the size of the grid (also {{key|Alt|A}}).
|-
|-
|] || Increase the size of the grid.
|{{key|]}} || Increase the size of the grid (also {{key|Alt|S}}).
|-
|-
|Shift+R || Toggle grid on/off.
|{{key|Shift|R}} || Toggle viewport grid on/off.
|-
|-
|Shift+W || Toggle snap to grid.
|{{key|Shift|W}} || Toggle grid snapping on/off.
|-
|-
|P || Toggle 3D grid on and off (with mouse cursor in 3D view).
|{{key|P}} || Toggle brush face 3D grid on and off (with mouse cursor in 3D view).
|-
|{{key|Ctrl|B}} || Snap selected objects to grid (based on selection bounding box).
|-
|{{key|Ctrl|Shift|B}} || Snap selected objects to grid (individually).
|}
|}


=Grouping=
=Grouping=
{|
{| class=standard-table
|Ctrl+G || Group selected objects.
|{{key|Ctrl|G}} || Group selected objects.
|-
|-
|Ctrl+U || Ungroup selected groups.
|{{key|Ctrl|U}} || * Ungroup selected groups.
|-
|-
|Ctrl+R || Create prefab with selected objects.
|{{key|Ctrl|R}} || Create prefab with selected objects.
|-
|-
|Ctrl+T || Tie to entity. Creates an entity with selected objects, or adds objects to an existing entity if one is also selected.
|{{key|Ctrl|W}} || Toggle Ignore Groups mode to bypass entity and group selection.
|-
|-
|Ctrl+W || Toggle Ignore Groups mode to bypass entity and group selection.
|{{key|Ctrl|T}} || Ties selected brushes to entity. If a selected brush is part of an existing entity you will have the option to add the other selected brushes to it.
|-
|-
|Ctrl+Shift+W || Move selected solid entities to world.
|{{key|Ctrl|Shift|W}} || "Move to world", removes entity status from selected brushes
|}
|}
: * this won't ungroup brushes tied to the same entity


=Carving/Hollowing=
=QuickHiding=
{|
{| class=standard-table
|Ctrl+Shift+C || Carve selected objects.
|{{key|H}} || QuickHide selected objects.
|-
|{{key|Ctrl|H}} || QuickHide unselected objects. (Formerly mapped to "Hollow selected objects".)
|-
|-
|Ctrl+H || Hollow selected objects.
|{{key|U}} || Unhide all.
|}
|}


=Viewports=
=Viewports=
{|
{| class=standard-table
|Ctrl+A || Auto-size 4 views to center.
|{{key|Ctrl|A}} || Auto-size 4 views to center.
|-
|{{key|Shift|Z}} || Maximize/restore active viewport.
|-
| {{key|Up}} {{key|Down}} {{key|Left}} {{key|Right}} || Pan the view
|-
|{{key|Ctrl|I}} || Flip selected objects vertically.
|-
|-
|Shift+Z || Maximize/restore current viewport.
|{{key|Ctrl|L}} || Flip selected objects horizontally.
|-
|-
|Arrow keys || Nudge the current selection in the current 2D or 3D viewport.
|{{key|Ctrl|B}} || Snap selected objects to grid (based on selection bounding box).
|-
|-
|Shift+Arrow keys || Clone the current selection and nudge it the current 2D or 3D viewport.
|{{key|Ctrl|Shift|B}} || Snap selected objects to grid (individually).
|-
|-
|F6 || Cycles to the next active viewport.
|{{key|Ctrl|Shift|E}} || Center 3D viewport on currently selected objects.
|-
|-
|F6 || Cycles to the previous active viewport.
| {{key|F2}} ||switch to 2D Top (X/Y) view
|-
| {{key|F3}} || switch to 2D Side (X/Z) view
|-
| {{key|F4}} || switch to 2D Front (Y/Z) view
|-
| {{key|F5}} || switch to 3D textured view
|-
| {{key|Shift|F5}} || switch to 3D shaded textured view
|}
 
With "arrow key nudge" enabled in the 2d views options menu, you can also utilize:
{| class=standard-table
| {{key|Up}} {{key|Down}} {{key|Left}} {{key|Right}} || Nudge the current selection in the current 2D or 3D viewport.
|-
|{{key|Shift}}+{{key|Up}} / {{key|Down}} / {{key|Left}} / {{key|Right}} || Clone the current selection and nudge it in the active 2D or 3D viewport.
|}
|}


=2D Views=
=2D Views=
{|
{| class=standard-table
|Ctrl+I || Flip selected objects vertically.
|{{key|Tab}} || Switch view types (top/side/front).
|-
|NumPad {{key|+}} / {{key|-}} || Zoom in/out (hold Ctrl to synchronize all 2D views).
|-
|{{key|MMB}} || Zoom in/out (hold Ctrl to synchronize all 2D views).
|-
|{{key|1}} to {{key|9}} || Preset zoom levels.
|-
|{{key|Spacebar}} || Hold Spacebar and left mouse button to drag the view position around.
|-
|{{key|Alt}} || Disable snap to grid while dragging with the mouse.
|-
|{{key|Ctrl|E}} || Center all 2D Views on currently selected objects.
|}
 
=3D View=
{| class=standard-table
|rowspan="3" | {{key|Spacebar}} (holding)|| Holding the {{key|LMB}} left mouse button allows you to rotate your angle of view in any direction, while the viewing point remains stationary.
|-
| Holding the {{key|RMB}} right mouse button will allow you to move left, right, up, and down while keeping the viewing angle constant.
|-
| Holding both the left and right mouse buttons allows you to move forward and backward, as well as pan from side to side.
|-
|rowspan="2" | {{key|Spacebar|Shift}} || The {{key|LMB}} left mouse button acts the same as above.
|-
| The {{key|RMB}} right mouse button allows you to move forward and backward, as well as pan from side to side.
|-
|-
|Ctrl+L || Flip selected objects horizontally.
|rowspan="2" | * {{key|Up}} {{key|Down}} {{key|Left}} {{key|Right}} ||
(up/down) rotate angle of view up and down (change pitch)
|-
|-
|Ctrl+B || Snap selected objects to grid (based on bounding box).
|(left/right) rotate left and right (change yaw)
|-
|-
|Ctrl+Shift+B || Snap selected objects to grid (individually).
|{{key|MMB}} || Zoom in/out.
|-
|-
|Tab || Switch view types (top/side/front).
|{{key|W}} {{key|A}} {{key|S}} {{key|D}} || Move camera.
|-
|-
| +/- || Zoom in/out (hold Ctrl to synchronize all 2D views).
|{{key|Z}} || Toggles mouse look ("noclip") navigation mode.
|-
|-
|Mouse Wheel || Zoom in/out (hold Ctrl to synchronize all 2D views).
|{{key|P}} || Toggle brush face 3D grid on and off (with mouse cursor in 3D view).
|-
|-
|1 to 9 || Preset zoom levels.
|{{key|O}} || Display frames per second and yaw/pitch of camera (with mouse cursor in 3D view).
|-
|-
|Space || Hold space and left mouse button to drag view position.
|{{key|I}} || Display bounding boxes for all visible objects.
|-
|-
|Alt || Disable snap to grid while dragging with the mouse.
|{{key|X}} or {{key|Ctrl|F9}} || Display selection handles for object resizing/rotation.
|-
|-
|Ctrl+E || Center 2D Views on currently selected objects.
|{{key|1}} || Decrease far clipping plane.
|-
|-
|Mouse Wheel || Zoom in/out (hold Ctrl to synchronize all 2D views).
|{{key|2}} || Increase far clipping plane.
|-
|{{key|Ctrl|Shift|E}} || Center 3D View on selection.
|}
|}
: * with "arrow key nudge" disabled in the "2d views" options menu


=3D View=
=[[File:mt-selection.png]] Selection Tool=
{|
{| class=standard-table
|Space (holding)||
|rowspan=4 | {{key|LMB}} || (On an unselected object) Selects the object under the cursor and deselects any previously selected items
Holding the left mouse button allows you to rotate your angle of view in any direction, while the viewing point remains stationary.
|-
 
|(On a selected object) Cycles through resize, rotate, and skew
Holding the right mouse button will allow you to move left, right, up, and down while keeping the viewing angle constant.
|-
|(Holding) Cycle through every object beneath the cursor. Good for selecting obscured items without moving your view.
|-
|-
|Space+Shift || The left mouse button acts the same as above.
|(Click and drag) to select all objects touching the selection box upon releasing the Left mouse (hold Shift when releasing the Left mouse to select objects only entirely within the selection box).
 
The right mouse button allows you to move forward and backward, as well as from side to side.
|-
|-
|Mouse Wheel || Zoom in/out.
|{{key|Ctrl}} || Hold {{key|Ctrl}} and Left-Click to select/deselect multiple objects.
|-
|-
|W || Move camera forward.
|{{key|Alt}} || Disable snap to grid while dragging with the mouse.  
|-
|-
|S || Move camera backward.
|rowspan=2 | {{key|Shift}} || hold {{key|Shift}} when moving an object to create a copy (clone) of that object.
|-
|-
|A || Move camera (strafe) left.
|* Hold {{key|Shift}} (or {{key|Alt}}) when rotating to allow rotation unconstrained to 15 degrees intervals
|-
|-
|D || Move camera (strafe) right.
|{{key|Shift|Q}} or {{key|Esc}} || Clear current selections.
|-
|-
|z || Toggles 3D view "noclip" navigation mode.
|{{key|PgUp}} || Previous selection in "hit" list.
|-
|-
|P || Toggle 3D grid on and off (with mouse cursor in 3D view).
|{{key|PgDn}} || Next selection in "hit" list.
|-
|-
|O || Display frames per second and yaw/pitch of camera (with mouse cursor in 3D view).
|{{key|Ctrl|T}} || Ties selected brushes to entity. If a selected brush is part of an existing entity you will have the option to add the other selected brushes to it.
|-
|-
|1 || Decrease far clipping plane.
|{{key|Ctrl|Shift|W}} || "Move to world", removes entity status from selected brushes
|-
|-
|2 || Increase far clipping plane.
|{{key|Alt|Enter}} || Open up Object Properties for the currently selected objects.
|-
|-
|Ctrl+Shift+E || Center 3D View on selection.
|{{key|Ctrl|Shift|C}} || Carve using selected geometry. (Known to cause vertex issues, use at your own discretion.)
|}
|}
: * when "Default to 15 degree rotation" is enabled in the "2D views" options menu


=Selection Tool=
=[[File:mt-camera.png]] Camera Tool=
{|
{| class=standard-table
|Ctrl || Hold Ctrl and click to select multiple objects.
|{{key|Shift}} || Hold {{key|Shift}} and click and drag {{key|LMB}} left mouse button to create a new camera.
|-
|{{key|PgUp}} || Cycle to the previous camera position.
|-
|-
|Shift || Hold Shift when rotating to constrain rotation to 15 degrees; hold Shift when moving an object to create a copy (clone) of that object.
|{{key|PgDn}} || Cycle to the next camera position.
|-
|-
|Left mouse || Click and drag left mouse button to select with a box; press Enter to select objects hitting the box, or press Shift+Enter to select objects only entirely within the box.
|{{key|Delete}} || Delete the current camera position.
|-
|-
|Esc || Cancel current selection
|{{key|Ctrl}} || Hold {{key|Ctrl}} and drag a camera or its point of interest to move both together.
|-
|{{key|MMB}} || (in 3D/Camera viewport) Move active camera forward or backward along its view axis
|}
|}


=Camera Tool=
=[[File:mt-block.png]] Block Tool=
{|
{| class=standard-table
|Shift or Alt || Hold Shift or Alt and click and drag left mouse button to create a new camera.
|{{key|LMB}} || Click and drag left mouse to draw a new brush shape.
|-
|-
|PgUp || Cycle to the previous camera position.
|{{key|Enter}} || Create object drawn with block/entity tool.
|-
|-
|PgDn || Cycle to the next camera position.
|{{key|Esc}} || Delete object drawn with block/entity tool without creating it.
|-
|-
|Delete || Delete the current camera position.
|{{key|Alt|Shift|C}} || Insert original prefab.
|-
|Ctrl || Hold Ctrl and drag a camera or its point of interest to move both together.
|}
|}


=Block Tool=
=[[File:mt-entities.png]] Entity Tool=
{|
{| class=standard-table
|Left Mouse || Click and drag left mouse to draw a new brush shape.
|rowspan=2 | {{key|LMB}} ||
(in 3D view) Click on brush surface to create the current entity on clicked location
|-
|-
|Enter || Create object drawn with block/entity tool.
|(in 2D view) Click to set entities X/Y/Z coordinates, press enter to create entity at current coordinates (or {{key|RMB}} right mouse button on coordinate's center)
|-
|-
|Esc || Delete object drawn with block/entity tool without creating it.
|{{key|Delete}} || Remove last created entity
|-
|Alt+Shift+C || Insert original prefab.
|}
|}


=Texture Application Tool=
=[[File:Hammer_ToggleTextureApplication.png]] Texture Application Tool=
{|
{| class=standard-table
|Ctrl || Hold Ctrl and click to select multiple faces.
|{{key|Ctrl}} || Hold {{key|Ctrl}} and click to select/deselect multiple faces.
|-
|-
|Shift || Hold Shift and click a face to select all faces on the brush.
|{{key|Shift}} || Hold {{key|Shift}} and click a face to select all faces on the brush.
|-
|-
|Shift+Ctrl || Hold Shift and Ctrl, click a face to add all faces on the brush to the current selection.
|{{key|Shift|Ctrl}} || Hold {{key|Shift}} and {{key|Ctrl}} when clicking a face to invert the selected faces on a brush with the unselected faces.
|-
|-
|Right-click || Apply the current material settings to the face that is clicked.
|{{key|RMB}} || Apply the current material settings to the face that is clicked.
|-
|-
|Alt+Right-click || Apply the current material settings to the face that is clicked, with wrapping.
|{{key|Shift}}+{{key|RMB}} || Apply the current material settings to all the faces of a brush that is clicked.
|-
|{{key|Alt}}+{{key|RMB}} || Apply all the current material settings to the face that is clicked with wrapping/alignment to the previously selected face.
|-
|{{key|Alt|Shift}}+{{key|RMB}} || Apply the current material settings to all the faces of the brush that is clicked on with wrapping/alignment to the previously selected face.
|}
|}
 
=Displacement Editing Tool=
=Displacement Editing Tool, Select Mode=
==Select Mode==
{|
{| class=standard-table
|Ctrl || Hold Ctrl and click to select multiple faces.
|{{key|Ctrl|LMB}} || Hold Ctrl and click to select multiple faces.
|-
|-
|Shift || Hold Shift and click a face to select all faces on the brush.
|{{key|Shift}} || Hold Shift and click a face to select all faces on the brush.
|-
|-
|Shift+Ctrl || Hold Shift and Ctrl, click a face to add all faces on the brush to the current selection.
|{{key|Shift|Ctrl}} || Hold Shift and Ctrl, click a face to add all unselected faces on the brush to the current selection.
|}
|}


=Displacement Editing Tool, Paint Geometry Mode=
==Paint Geometry Mode==
{|
{| class=standard-table
|Ctrl || Hold Ctrl and click to select multiple faces.
|{{key|LMB}} || Applies selected affect to the encompassed vertex/vertices on selected faces
|-
|{{key|RMB}} || Lowers the encompassed vertex/vertices on selected faces when Raise/Lower is selected
|-
|-
|Alt || hold Alt and drag to alter the size of the spatial editing brush.
|{{key|Ctrl|LMB}} || Hold Ctrl and Left-Click to select multiple faces.
|-
|-
|Shift || hold Shift and drag a vertex to nudge the vertex along the editing axis.
|{{key|Shift|Ctrl|LMB}} || Hold Shift and Ctrl, Left-Click a face to add all unselected faces on the brush to the current selection.
|-
|-
|Alt+Right-click || Click any brush or displacement face to make that face’s normal the current painting axis.
|{{key|Alt|LMB}} || hold Alt and Left-Mouse-Button drag to alter the size of the spatial editing sphere.
|-
|{{key|Shift}} || hold Shift and Left-Click a vertex to drag that vertex along the current painting axis.
|-
|{{key|Alt|RMB}} || Click any brush or displacement face to make that face’s normal the current painting axis.
|}
|}


=Displacement Editing Tool, Paint Alpha mode=
==Paint Alpha mode==
{|
{| class=standard-table
|Ctrl || Hold Ctrl and click to select multiple faces.
|{{key|LMB}} || Applies secondary texture to the encompassed vertex/vertices on selected faces when Raise/Lower is selected
|-
|-
|Shift+Ctrl || Hold Shift and Ctrl, click a face to add all faces on the brush to the current selection.
|{{key|RMB}} || Applies primary texture the encompassed vertex/vertices on selected faces when Raise/Lower is selected
|-
|{{key|Ctrl|LMB}} || Hold Ctrl and click to select multiple faces.
|-
|{{key|Shift|Ctrl}} || Hold Shift and Ctrl, click a face to add all faces on the brush to the current selection.
|}
|}


=Overlay Tool=
=[[File:mt-overlay.png]] Overlay Tool=
{|
{| class=standard-table
|Shift || Hold Shift and drag a overlay vertex to snap it to another vertex.
|{{key|Ctrl}} || hold Ctrl and click to select multiple overlays.
|-
|-
|Ctrl || hold Ctrl and click to select multiple overlays.
|{{key|Shift}} || * Hold Shift and then drag an overlay's vertex to snap it to another overlay's vertex.
|}
|}
: * Multiple overlays must be selected inside vertex mode for this to work, only one vertex can be snapped at a time. This option is mainly used for connecting line based overlays (spills, road lane markers, etc)


=Clipper Tool=
=[[File:mt-clipping.png]] Clipping Tool=
{|
{| class=standard-table
|Left mouse|| Click and drag left mouse to create a new clip plane.
|{{key|LMB}}|| Click and drag left mouse to create a new clip plane.
|-
|-
|Shift || Hold Shift and drag with the left mouse button to create a new clip plane without performing the previous clip.
|{{key|Shift|LMB}} || Hold Shift and drag with the left mouse button to erase the previous clipping plane and create a new one.
|-
|-
|Enter || Perform clip
|{{key|Enter}} || Perform clip
|-
|-
|Ctrl || hold Ctrl and drag with the left mouse button to move both handles of the clipping plane.
|{{key|Ctrl|LMB}} || hold Ctrl and drag with the left mouse button over a clipping handle to move both handles of the clipping plane at the same time.
|-
|-
|O || Toggle clip distance display on and off (with mouse cursor in 2D view).
|{{key|O}} || Toggle the clip distance measurements display on and off (with mouse cursor in 2D view).
|-
|-
|Shift+X || Cycle through clip modes.
|{{key|Shift|X}} || Cycle through clip modes.
|}
|}


=Vertex Edit Tool=
=[[File:mt-vertex.png]] Vertex Edit Tool=
{|
{| class=standard-table
|Ctrl+F || Split faces (vertex manipulation) || must have two edges or vertices selected.
|{{key|LMB}}|| select vertex/vertices or edges
|-
|-
|Alt+E || Open Vertex Scaling dialog.
|{{key|Ctrl|LMB}} || add vertex/vertices or edges to selection
|-
|-
|Enter || Close Vertex Scaling dialog and perform scale.
|{{key|Ctrl|F}} || * Split face (vertex manipulation)
|-
|-
|Shift+V || Cycle vertex/edge display modes.
|{{key|Alt|E}} || Open Vertex Scaling dialog.
|-
|{{key|Enter}} || Close Vertex Scaling dialog and perform scale.
|-
|{{key|Shift|V}} || Cycle vertex/edge display modes.
|}
|}
: * You must have two edges or vertices selected that are part of the same face.


=Miscellaneous=
=Miscellaneous=
{|
{| class=standard-table
|Shift+L || Toggle Texture lock.
|{{key|Shift|L}} || Toggle Texture lock.
|-
|{{key|Ctrl|M}} || Open Transform dialog.
|-
|{{key|Alt|P}} || Open Check for Problems dialog.
|-
|-
|Ctrl+M || Open Transform dialog.
|{{key|Esc}} || * Clear current selection or abort current tool/mouse operation (drag/drop) and goto the selection tool.
|-
|-
|Alt+P || Open Check for Problems dialog.
|{{key|Ctrl|Shift|G}} || Go to Brush Number dialog.
|-
|-
|Esc || Abort current tool/mouse operation (drag/drop) or clear current selection.
|{{key|Ctrl|Shift|F}} || Open Find Entities dialog.
|-
|-
|Ctrl+Shift+G || Go to Brush Number dialog.
|{{key|Ctrl|Shift|R}} || Open Replace Entities dialog.
|-
|-
|Ctrl+Shift+F || Open Find Entities dialog.
|{{key|F1}} || Help
|-
|-
|Ctrl+Shift+R || Open Replace Entities dialog.
|{{key|Ctrl|R}} || Create prefab from selected, the origin (0 0 0 X/Y/Z coordinates) will become prefabs center
|-
|{{key|Ctrl|Alt|S}} || Open Entity Sprinkle dialog. ({{csgo}},{{GMOD}},{{portal2}})
|}
|}
: * Does not work with the Magnify, Texture Application, or Overlay Tools
[[Category:Hammer]]

Latest revision as of 07:23, 12 July 2024

English (en)Español (es)한국어 (ko)Polski (pl)Русский (ru)中文 (zh)Translate (Translate)

Tools

Shift+S Mt-selection.png Selection Tool
Shift+G Hammer magnify.png Magnify Tool
Shift+C Mt-camera.png Camera Tool
Shift+E Mt-entities.png Entity Tool
Shift+B Mt-block.png Block Tool
Shift+A Hammer ToggleTextureApplication.png Texture Application Tool
Shift+T Hammer ApplyCurrentTexture.png Apply Current Texture (to selected brushes)
Shift+D Mt-decal.png Decal Tool
Shift+O Mt-overlay.png Overlay Tool
Shift+X Mt-clipping.png Clipping Tool
Shift+V Mt-vertex.png Vertex Edit Tool

File Operations

Ctrl+N Create a new file.
Ctrl+O Open an existing file.
Ctrl+S Save the current file.
Alt+B Export again.
F9 Run/Compile Map.
Ctrl+ Shift+S Open Sound Browser.

Undo/Redo

Ctrl+Z Undo.
Ctrl+Y Redo.

Clipboard/Copy & Paste

Ctrl+C Copy selected objects to clipboard (also Ctrl+Insert).
Ctrl+V Paste objects from clipboard to cursor location (also Shift+Insert).
Ctrl+ Shift+V Paste special.
Ctrl+X Cut selected objects to clipboard (also Shift+del).

Grid

[ Decrease the size of the grid (also Alt+A).
] Increase the size of the grid (also Alt+S).
Shift+R Toggle viewport grid on/off.
Shift+W Toggle grid snapping on/off.
P Toggle brush face 3D grid on and off (with mouse cursor in 3D view).
Ctrl+B Snap selected objects to grid (based on selection bounding box).
Ctrl+ Shift+B Snap selected objects to grid (individually).

Grouping

Ctrl+G Group selected objects.
Ctrl+U * Ungroup selected groups.
Ctrl+R Create prefab with selected objects.
Ctrl+W Toggle Ignore Groups mode to bypass entity and group selection.
Ctrl+T Ties selected brushes to entity. If a selected brush is part of an existing entity you will have the option to add the other selected brushes to it.
Ctrl+ Shift+W "Move to world", removes entity status from selected brushes
* this won't ungroup brushes tied to the same entity

QuickHiding

H QuickHide selected objects.
Ctrl+H QuickHide unselected objects. (Formerly mapped to "Hollow selected objects".)
U Unhide all.

Viewports

Ctrl+A Auto-size 4 views to center.
Shift+Z Maximize/restore active viewport.
Pan the view
Ctrl+I Flip selected objects vertically.
Ctrl+L Flip selected objects horizontally.
Ctrl+B Snap selected objects to grid (based on selection bounding box).
Ctrl+ Shift+B Snap selected objects to grid (individually).
Ctrl+ Shift+E Center 3D viewport on currently selected objects.
F2 switch to 2D Top (X/Y) view
F3 switch to 2D Side (X/Z) view
F4 switch to 2D Front (Y/Z) view
F5 switch to 3D textured view
Shift+F5 switch to 3D shaded textured view

With "arrow key nudge" enabled in the 2d views options menu, you can also utilize:

Nudge the current selection in the current 2D or 3D viewport.
Shift+ / / / Clone the current selection and nudge it in the active 2D or 3D viewport.

2D Views

Tab Switch view types (top/side/front).
NumPad + / - Zoom in/out (hold Ctrl to synchronize all 2D views).
MMB Zoom in/out (hold Ctrl to synchronize all 2D views).
1 to 9 Preset zoom levels.
Spacebar Hold Spacebar and left mouse button to drag the view position around.
Alt Disable snap to grid while dragging with the mouse.
Ctrl+E Center all 2D Views on currently selected objects.

3D View

Spacebar (holding) Holding the LMB left mouse button allows you to rotate your angle of view in any direction, while the viewing point remains stationary.
Holding the RMB right mouse button will allow you to move left, right, up, and down while keeping the viewing angle constant.
Holding both the left and right mouse buttons allows you to move forward and backward, as well as pan from side to side.
Spacebar+ Shift The LMB left mouse button acts the same as above.
The RMB right mouse button allows you to move forward and backward, as well as pan from side to side.
*

(up/down) rotate angle of view up and down (change pitch)

(left/right) rotate left and right (change yaw)
MMB Zoom in/out.
W A S D Move camera.
Z Toggles mouse look ("noclip") navigation mode.
P Toggle brush face 3D grid on and off (with mouse cursor in 3D view).
O Display frames per second and yaw/pitch of camera (with mouse cursor in 3D view).
I Display bounding boxes for all visible objects.
X or Ctrl+F9 Display selection handles for object resizing/rotation.
1 Decrease far clipping plane.
2 Increase far clipping plane.
Ctrl+ Shift+E Center 3D View on selection.
* with "arrow key nudge" disabled in the "2d views" options menu

Mt-selection.png Selection Tool

LMB (On an unselected object) Selects the object under the cursor and deselects any previously selected items
(On a selected object) Cycles through resize, rotate, and skew
(Holding) Cycle through every object beneath the cursor. Good for selecting obscured items without moving your view.
(Click and drag) to select all objects touching the selection box upon releasing the Left mouse (hold Shift when releasing the Left mouse to select objects only entirely within the selection box).
Ctrl Hold Ctrl and Left-Click to select/deselect multiple objects.
Alt Disable snap to grid while dragging with the mouse.
Shift hold Shift when moving an object to create a copy (clone) of that object.
* Hold Shift (or Alt) when rotating to allow rotation unconstrained to 15 degrees intervals
Shift+Q or Esc Clear current selections.
PgUp Previous selection in "hit" list.
PgDn Next selection in "hit" list.
Ctrl+T Ties selected brushes to entity. If a selected brush is part of an existing entity you will have the option to add the other selected brushes to it.
Ctrl+ Shift+W "Move to world", removes entity status from selected brushes
Alt+ Enter Open up Object Properties for the currently selected objects.
Ctrl+ Shift+C Carve using selected geometry. (Known to cause vertex issues, use at your own discretion.)
* when "Default to 15 degree rotation" is enabled in the "2D views" options menu

Mt-camera.png Camera Tool

Shift Hold Shift and click and drag LMB left mouse button to create a new camera.
PgUp Cycle to the previous camera position.
PgDn Cycle to the next camera position.
Delete Delete the current camera position.
Ctrl Hold Ctrl and drag a camera or its point of interest to move both together.
MMB (in 3D/Camera viewport) Move active camera forward or backward along its view axis

Mt-block.png Block Tool

LMB Click and drag left mouse to draw a new brush shape.
Enter Create object drawn with block/entity tool.
Esc Delete object drawn with block/entity tool without creating it.
Alt+ Shift+C Insert original prefab.

Mt-entities.png Entity Tool

LMB

(in 3D view) Click on brush surface to create the current entity on clicked location

(in 2D view) Click to set entities X/Y/Z coordinates, press enter to create entity at current coordinates (or RMB right mouse button on coordinate's center)
Delete Remove last created entity

Hammer ToggleTextureApplication.png Texture Application Tool

Ctrl Hold Ctrl and click to select/deselect multiple faces.
Shift Hold Shift and click a face to select all faces on the brush.
Shift+Ctrl Hold Shift and Ctrl when clicking a face to invert the selected faces on a brush with the unselected faces.
RMB Apply the current material settings to the face that is clicked.
Shift+RMB Apply the current material settings to all the faces of a brush that is clicked.
Alt+RMB Apply all the current material settings to the face that is clicked with wrapping/alignment to the previously selected face.
Alt+ Shift+RMB Apply the current material settings to all the faces of the brush that is clicked on with wrapping/alignment to the previously selected face.

Displacement Editing Tool

Select Mode

Ctrl+LMB Hold Ctrl and click to select multiple faces.
Shift Hold Shift and click a face to select all faces on the brush.
Shift+Ctrl Hold Shift and Ctrl, click a face to add all unselected faces on the brush to the current selection.

Paint Geometry Mode

LMB Applies selected affect to the encompassed vertex/vertices on selected faces
RMB Lowers the encompassed vertex/vertices on selected faces when Raise/Lower is selected
Ctrl+LMB Hold Ctrl and Left-Click to select multiple faces.
Shift+Ctrl+LMB Hold Shift and Ctrl, Left-Click a face to add all unselected faces on the brush to the current selection.
Alt+LMB hold Alt and Left-Mouse-Button drag to alter the size of the spatial editing sphere.
Shift hold Shift and Left-Click a vertex to drag that vertex along the current painting axis.
Alt+RMB Click any brush or displacement face to make that face’s normal the current painting axis.

Paint Alpha mode

LMB Applies secondary texture to the encompassed vertex/vertices on selected faces when Raise/Lower is selected
RMB Applies primary texture the encompassed vertex/vertices on selected faces when Raise/Lower is selected
Ctrl+LMB Hold Ctrl and click to select multiple faces.
Shift+Ctrl Hold Shift and Ctrl, click a face to add all faces on the brush to the current selection.

Mt-overlay.png Overlay Tool

Ctrl hold Ctrl and click to select multiple overlays.
Shift * Hold Shift and then drag an overlay's vertex to snap it to another overlay's vertex.
* Multiple overlays must be selected inside vertex mode for this to work, only one vertex can be snapped at a time. This option is mainly used for connecting line based overlays (spills, road lane markers, etc)

Mt-clipping.png Clipping Tool

LMB Click and drag left mouse to create a new clip plane.
Shift+LMB Hold Shift and drag with the left mouse button to erase the previous clipping plane and create a new one.
Enter Perform clip
Ctrl+LMB hold Ctrl and drag with the left mouse button over a clipping handle to move both handles of the clipping plane at the same time.
O Toggle the clip distance measurements display on and off (with mouse cursor in 2D view).
Shift+X Cycle through clip modes.

Mt-vertex.png Vertex Edit Tool

LMB select vertex/vertices or edges
Ctrl+LMB add vertex/vertices or edges to selection
Ctrl+F * Split face (vertex manipulation)
Alt+E Open Vertex Scaling dialog.
Enter Close Vertex Scaling dialog and perform scale.
Shift+V Cycle vertex/edge display modes.
* You must have two edges or vertices selected that are part of the same face.

Miscellaneous

Shift+L Toggle Texture lock.
Ctrl+M Open Transform dialog.
Alt+P Open Check for Problems dialog.
Esc * Clear current selection or abort current tool/mouse operation (drag/drop) and goto the selection tool.
Ctrl+ Shift+G Go to Brush Number dialog.
Ctrl+ Shift+F Open Find Entities dialog.
Ctrl+ Shift+R Open Replace Entities dialog.
F1 Help
Ctrl+R Create prefab from selected, the origin (0 0 0 X/Y/Z coordinates) will become prefabs center
Ctrl+Alt+S Open Entity Sprinkle dialog. (Counter-Strike: Global Offensive,Garry's Mod,Portal 2)
* Does not work with the Magnify, Texture Application, or Overlay Tools