Hammer Block Tool: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Unicodifying, replaced: [[Image: → [[File: (4))
 
(15 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Image:mt-block.png|float|left]]
{{lang|{{PAGENAME}}}}
[[File:mt-block.png|float|left]]


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.
This is the basic [[Basic Construction|brush creation]] tool in [[Hammer]]. The '''Block Tool''' allows you to create some different types of primitive shapes, and it is also used to place [[prefab]] objects. Once selected, the [[Hammer New Objects Toolbar|New Objects]] toolbar will contain a list of objects from which to choose.


==Creating a primitive solid==
==Creating Brushes==
Creating [[brush]]es is quite simple. The process always follows the same four basic steps:


[[Image:block_tool.png|right]]
[[File:block_tool.png|right]]


# Select the '''Block Tool'''.
# Select the '''Block Tool'''.
# 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 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.
# 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==
==Inserting Prefabs With the Block Tool==
 
[[File:InsertPrefabTut2.png|right|160px]]
[[Image:InsertSizedPrefab.png|right]]
[[File:InsertPrefabTut3.png|right|160px]]
 
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.
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.
 
To place a prefab object, scaling it to an exact size:
 
# Select the '''Block Tool'''.
# 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}}
{{clr}}


==See Also==
==See also==
 
* [[Prefab#Inserting prefabs|Inserting Prefabs]]
* [[Brush Creation#Inserting Prefabs|Inserting Prefabs]]
* [[Basic Construction]]
* [[Brush Creation]]
 
[[Category:Hammer Tools]]
[[Category:Hammer Tools]]

Latest revision as of 18:16, 7 January 2024

English (en)Deutsch (de)日本語 (ja)Русский (ru)中文 (zh)Translate (Translate)
float

This is the basic brush creation tool in Hammer. The Block Tool allows you to create some different types of primitive shapes, 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

InsertPrefabTut2.png
InsertPrefabTut3.png

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