Hammer Block Tool: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(fixed error in prefab placement (wrong tool) + links)
(Fixed link and started moving the section on prefabs to prefab.)
Line 13: Line 13:
# Drag a box in a 2D view, making sure it is the correct size and in the correct position in each of the views.
# Drag a box in a 2D view, making sure it is the correct size and in the correct position in each of the views.
# Press Enter to create the solid (or, alternatively, click the right mouse button and select ''Create Object'').
# Press Enter to create the solid (or, alternatively, click the right mouse button and select ''Create Object'').
{{clr}}
{{clr}}


==Inserting prefabs with the Block Tool==
==Inserting prefabs with the Block Tool==
[[Image:InsertSizedPrefab.png|right]]
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:
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 better to use the [[Hammer Entity Tool|Entity Tool]] instead.) See [[Prefab]] for more detailed information on creating and inserting prefabs.


# 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.
# 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.{{clr}}


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


* [[Brush Creation#Inserting Prefabs|Inserting Prefabs]]
* [[Prefab|Inserting Prefabs]]
* [[Brush Creation]]
* [[Brush Creation]]


[[Category:Hammer Tools]]
[[Category:Hammer Tools]]

Revision as of 19:20, 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 better to use the Entity Tool instead.) See Prefab for more detailed information on creating and inserting prefabs.


See Also