Hammer Block Tool: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(formatting)
Line 1: Line 1:
[[Category:Hammer Tools]]
[[Image:mt-block.png|float|left]]
[[Image:mt-block.png|float|left]]


This is the basic creation tool in Hammer. The '''Block Tool''' allows you to create any of the different types of primitive shapes, and to place prefab objects. Once selected, the [[Hammer New Objects Toolbar|New Objects]] Bar will contain a list of objects from which to choose.
[[Image:block_tool.png|right]]
 
This is the basic [[Brush Creation|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 [[Hammer New Objects Toolbar|New Objects]] Bar will contain a list of objects from which to choose.


To create a primitive solid:
To create a primitive solid:
Line 9: Line 10:
# In the [[Hammer New Objects Toolbar|New Objects]] Bar, select the primitive shape in the '''Objects''' selection box. There are multiple options, such as Block, Wedge, and Cylinder.
# In the [[Hammer New Objects Toolbar|New Objects]] Bar, select the primitive shape in the '''Objects''' selection box. There are multiple options, such as Block, Wedge, and Cylinder.
# 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.
# Press Enter to create the solid (or, alternatively, click the right mouse button and select ''Create Object'').
 
{{clr}}


[[Image:block_tool.png]]
[[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 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.
Line 22: Line 25:
# 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.


[[Image:InsertSizedPrefab.png]]
{{clr}}
 
==See Also==


For more information on placing prefabs, see [[Creating Brushes#Inserting Prefabs|Inserting Prefabs]] in [[Creating Brushes]].
* [[Creating Brushes#Inserting Prefabs|Inserting Prefabs]]
* [[Brush Creation]]
 
[[Category:Hammer Tools]]

Revision as of 03:35, 1 April 2006

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