Hammer快捷键参考

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)한국어 (ko)Polski (pl)Русский (ru)中文 (zh)Translate (Translate)
Info content.png
This page has not been fully translated.

You can help by finishing the translation.

Also, please make sure the article tries to comply with the alternate languages guide.

Tools 工具

Shift+S Mt-selection.png 选择工具 Selection Tool(en)
Shift+G Hammer magnify.png 缩放工具 Magnify Tool
Shift+C Mt-camera.png 相机工具 Camera Tool(en)
Shift+E Mt-entities.png 实体工具 Entity Tool(en)
Shift+B Mt-block.png 笔刷工具 Block Tool(en)
Shift+A Hammer ToggleTextureApplication.png 纹理应用工具 Texture Application Tool(en)
Shift+T Hammer ApplyCurrentTexture.png 应用当前纹理(应用于所选笔刷) Apply Current Texture (to selected brushes)(en)
Shift+D Mt-decal.png 贴花工具 Decal Tool(en)
Shift+O Mt-overlay.png 覆盖工具 Overlay Tool(en)
Shift+X Mt-clipping.png 裁剪工具 Clipping Tool(en)
Shift+V Mt-vertex.png 顶点编辑工具 Vertex Edit Tool(en)

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 将所选对象复制到剪贴板(同 Ctrl+Insert)。 Copy selected objects to clipboard (also Ctrl+Insert).
Ctrl+V 将对象从剪贴板粘贴到光标位置(同 Shift+Insert)。 Paste objects from clipboard to cursor location (also Shift+Insert).
Ctrl+ Shift+V 特殊粘贴。 Paste special.
Ctrl+X 将所选对象剪切到剪贴板(同 Shift+Del)。 Cut selected objects to clipboard (also Shift+Del).

Grid 网格

[ 减小网格的大小(同 Alt+A)。 Decrease the size of the grid (also Alt+A).
] 增加网格的大小(同 Alt+S)。 Increase the size of the grid (also Alt+S).
Shift+R 打开/关闭视口网格。 Toggle viewport grid on/off.
Shift+W 打开/关闭网格对齐(网格捕捉、吸附网格)。 Toggle grid snapping on/off.
P 打开/关闭 3D 网格。 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 自动调整 4 个视图的大小以居中显示。 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 将选中对象在 3D 视图中居中。 Center 3D viewport on currently selected objects.
F2 切换到 2D 顶视图(X/Y)。 switch to 2D Top (X/Y) view.
F3 切换到 2D 侧视图(X/Z)。 switch to 2D Side (X/Z) view.
F4 切换到 2D 正视图(Y/Z)。 switch to 2D Front (Y/Z) view.
F5 切换到 3D 纹理视图。 switch to 3D textured view.
Shift+F5 切换到 3D 阴影纹理视图。 switch to 3D shaded textured view.

在 2d 视图选项菜单中启用“箭头键微移”后,您还可以利用: With "arrow key nudge" enabled in the 2d views options menu, you can also utilize:

微移当前 2D 或 3D 视口中的所选对象。 Nudge the current selection in the current 2D or 3D viewport.
Shift+ / / / 复制所选对象并将其微移到激活的 2D 或 3D 视口中。 Clone the current selection and nudge it in the active 2D or 3D viewport.

2D Views 2D视图

Tab 切换视图类型(顶部/侧面/正面)。 Switch view types (top/side/front).
NumPad + / - 放大/缩小(按住 Ctrl 键可同步所有 2D 视图)。 Zoom in/out (hold Ctrl to synchronize all 2D views).
MMB 放大/缩小(按住 Ctrl 键可同步所有 2D 视图)。 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 将选中对象在全部 2D 视图中居中。 Center all 2D Views on currently selected objects.

3D View 3D视图

Spacebar (holding) 同时按住鼠标左键 LMB 可以在 3D 视图中旋转视角。 Holding the LMB left mouse button allows you to rotate your angle of view in any direction, while the viewing point remains stationary.
同时按住鼠标右键 RMB 可以上下左右移动并保持视角不变。 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 鼠标左键 LMB 的作用与上面相同。 The LMB left mouse button acts the same as above.
按住鼠标右键 RMB 可以前后移动,也可以从一侧平移到另一侧。 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 将鼠标切换到导航模式(类似“noclip”)。 Toggles mouse look ("noclip") navigation mode.
P 打开/关闭 3D 网格。 Toggle brush face 3D grid on and off (with mouse cursor in 3D view).
O 显示 3D 视图中相机的帧率和位置。 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 将选中对象在 3D 视图中居中。 Center 3D View on selection.
* 在“2d视图”选项菜单中禁用“箭头键微移”。 * 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.
(单击并拖动)在释放鼠标左键时选中接触到选择框的所有对象(释放鼠标左键时按住 Shift 键,以选中仅完全在选择框中的对象)。 (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 按住 Ctrl 和左键单击以选择/取消选择多个对象。 Hold Ctrl and Left-Click to select/deselect multiple objects.
Alt 禁用与网格对齐,同时使用鼠标拖动。 Disable snap to grid while dragging with the mouse.
Shift 按住 Shift 并移动对象以创建该对象的副本(克隆)。 hold Shift when moving an object to create a copy (clone) of that object.
* 按住 Shift (或 Alt )时允许不受 15 度间隔的约束进行旋转。 * 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.)
* 在“2D 视图”选项菜单中启用“默认为 15 度旋转”时。 * when "Default to 15 degree rotation" is enabled in the "2D views" options menu.

Mt-camera.png Camera Tool 相机工具

Shift 按住 Shift 然后单击并拖动鼠标左键 LMB 创建新相机。 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 按住 Ctrl 并拖动相机或其兴趣点以将两者一起移动。 Hold Ctrl and drag a camera or its point of interest to move both together.
MMB (在 3D/相机视口中)沿着激活的相机的视图轴向前或向后移动。 (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 (在 3D 视图中)单击笔刷表面以在单击的位置上创建当前实体。 (in 3D view) Click on brush surface to create the current entity on clicked location.
(在 2D 视图中)单击以设置实体的 X/Y/Z 坐标,按 Enter 键在当前坐标处创建实体(或者鼠标右键 RMB 坐标轴中心)。 (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 按住 Ctrl 然后单击以选择/取消选择多个面。 Hold Ctrl and click to select/deselect multiple faces.
Shift 按住 Shift 然后单击一个面以选择笔刷上的所有面。 Hold Shift and click a face to select all faces on the brush.
Shift+Ctrl 按住 ShiftCtrl 单击某个面以将笔刷上的选定面与未选定的面进行反转。 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 按住 Ctrl 并单击以选择多个面。 Hold Ctrl and click to select multiple faces.
Shift 按住 Shift 并单击一个面以选择笔刷上的所有面。 Hold Shift and click a face to select all faces on the brush.
Shift+Ctrl 按住 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 按住 Ctrl 并单击鼠标左键以选择多个面。 Hold Ctrl and Left-Click to select multiple faces.
Shift+Ctrl+LMB 按住 Shift 和 Ctrl 键,左键单击某个面可将笔刷上所有未选定的面添加到当前选区中。 Hold Shift and Ctrl, Left-Click a face to add all unselected faces on the brush to the current selection.
Alt+LMB 按住 Alt 和鼠标左键拖动以更改空间编辑球体的大小。 hold Alt and Left-Mouse-Button drag to alter the size of the spatial editing sphere.
Shift 按住 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 绘制 Alpha 模式

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 按住 Ctrl 并单击以选择多个面。 Hold Ctrl and click to select multiple faces.
Shift+Ctrl 按住 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 按住 Ctrl 并单击以选择多个覆盖图层。 hold Ctrl and click to select multiple overlays.
Shift * 按住 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 按住 Shift 并使用鼠标左键拖动以擦除上一个裁剪平面并创建一个新裁剪平面。 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 按住 Ctrl 并使用鼠标左键在剪裁手柄上拖动,以同时移动剪裁平面的两个手柄。 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 从所选位置创建预制件,原点(0 0 0 X/Y/Z 坐标)将成为预制件中心。 Create prefab from selected, the origin (0 0 0 X/Y/Z coordinates) will become prefabs center.
Ctrl+Alt+S 打开“实体喷洒”对话框。(反恐精英:全球攻势Garry's Mod传送门2 Open Entity Sprinkle dialog. (反恐精英:全球攻势,Garry's Mod,传送门2)
* 不适用于放大、纹理应用或覆盖工具 * Does not work with the Magnify, Texture Application, or Overlay Tools.