Hammer Block Tool: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(fixed error in prefab placement (wrong tool) + links)
Line 17: Line 17:


==Inserting prefabs with the Block Tool==
==Inserting prefabs with the Block Tool==
[[Image:InsertSizedPrefab.png|right]]
[[Image:InsertSizedPrefab.png|right]]


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 [[Hammer Selection Tool|Selection Tool]] as the active tool. See [[Hammer New Objects Toolbar|New Objects]] Bar for information on inserting prefabs.
Using the '''Block Tool''', you can also place a [[Prefab]] while scaling it to a new size. To place a prefab object while retaining its original size, it is best to have the [[Hammer Entity Tool|Entity Tool]] as the active tool. See [[Prefab]] for information on creating and inserting prefabs.


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


# Select the '''Block Tool'''.
# Select the '''Block Tool''' from the toolbar or using <Shift+B>.
# In the [[Hammer New Objects Toolbar|New Objects]] Bar, select a prefab library in the '''Library''' selection box. Then choose a prefab project from the '''Object''' selection box.
# In the [[Hammer New Objects Toolbar|New Objects]] Bar, select a prefab library in the '''Library''' selection box. Then choose a prefab project from the '''Object''' selection box.
# 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.
# 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.
# Press the '''Insert Original Prefab''' button on the [[Hammer New Objects Toolbar|New Objects]] Bar to insert the prefab. The prefab will inserted, and scaled to fit the selection box.
# Press the '''Insert Original Prefab''' button on the [[Hammer New Objects Toolbar|New Objects]] Bar to insert the prefab. The prefab will inserted, and scaled to fit the selection box.{{clr}}
 
{{clr}}


==See Also==
==See Also==

Revision as of 18:26, 27 August 2006

float

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 toolbar will contain a list of objects from which to choose.

Creating brushes

Creating brushes is quite simple. The process always follows the same four basic steps:

Block tool.png
  1. Select the Block Tool.
  2. In the New Objects Bar, select the shape in the Objects selection box. There are multiple options, such as Block, Wedge, and Cylinder. See the Primitive page for a full list and visual examples.
  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).

Inserting prefabs with the Block Tool

Using the Block Tool, you can also place a Prefab while scaling it to a new size. To place a prefab object while retaining its original size, it is best to have the Entity Tool as the active tool. See Prefab for information on creating and inserting prefabs.

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

  1. Select the Block Tool from the toolbar or using <Shift+B>.
  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