Hammer Block Tool

From Valve Developer Community
Jump to navigation Jump to search
float
Block tool.png

This is the basic brush creation tool in Hammer. The Block Tool allows you to create some different types of primitive shapes, some more complex ones and it is also used to place prefab objects. Once selected, the New Objects Bar will contain a list of objects from which to choose.

To create a primitive solid:

  1. Select the Block Tool.
  2. In the New Objects Bar, select the primitive shape in the Objects selection box. There are multiple options, such as Block, Wedge, and Cylinder.
  3. Drag a box in a 2D view, making sure it is the correct size and in the correct position in each of the views.
  4. Press Enter to create the solid (or, alternatively, click the right mouse button and select Create Object).

Using the Block Tool, you can also place prefabs while scaling them to a new size. To place a prefab object while retaining its original size, it is best to have the Selection Tool as the active tool. See New Objects Bar for information on inserting prefabs.

To place a prefab object, scaling it to an exact size:

  1. Select the Block Tool.
  2. In the New Objects Bar, select a prefab library in the Library selection box. Then choose a prefab project from the Object selection box.
  3. Drag a selection box in the 2D views, making sure it is the correct size and in the correct position in each of the views.
  4. Press the Insert Original Prefab button on the New Objects Bar to insert the prefab. The prefab will inserted, and scaled to fit the selection box.

See Also