Hammer Paste Special Dialog: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: Unicodifying, replaced: [[Image: → [[File:)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Hammer Dialogs]]
{{lang|Hammer Paste Special Dialog}}
The '''Paste Special dialog''' can help you paste a copy of any objects in the clipboard into the current file, using special placement information entered into the dialog box. This allows multiple pasting of the clipboard contents with offsets and rotations. This relieves the work in creating an object that contains many identical elements. For instance, to create a picket fence you can make one rail, then copy it multiple times with an offset for each new rail.
Hammer's '''Paste Special''' dialog can help you paste a copy of any objects in the clipboard into the current file, using special placement information entered into the dialog box. This allows multiple pasting of the clipboard contents with offsets and rotations. This relieves the work in creating an object that contains many identical elements. For instance, to create a picket fence you can make one rail, then copy it multiple times with an offset for each new rail.


[[Image:PasteSpecial.jpg]]
[[File:Hammer_PasteSpecial.png]]


== Number of copies to paste ==
==Options==


This value controls the number of new copies that will be created by the operation.
* '''Number of copies to paste''': This value controls the number of new copies that will be created by the operation.
* '''Start at center of original''': In the default On position, offsets and rotations are relative to the location and rotation of the original item in the clipboard. With it off, the new objects will be created relative to the center of the two previously selected windows.
* '''Group copies''': Turning this on will group all resulting objects together. The default for '''Group copies''' is off.
* '''Offset (accumulative)''': The three boxes here allow offset values for the X, Y and Z axes. With each additional paste, the next object will be offset from the previous one by these values which are given in map units. The '<' buttons beside each box will automatically insert values according to size of the selection in the clipboard.
* '''Rotation (accumulative)''': These settings work in the same fashion as the Offset values, except that they apply rotation with each successive paste.
* '''Make pasted entity names unique''': Every pasted entity will get a unique targetname. If you copy 2 entities which have I/O connections to each other, the targetnames used in the connections will change too.
* '''Add this prefix to all named entities''': Named entities will get this prefix added to their targetnames. Again, if you copy 2 entities which have I/O connections to each other, the targetnames used in the connections will change too.


== Start at center of original ==
==An example==
 
In the default On position, offsets and rotations are relative to the location and rotation of the original item in the clipboard. With it off, the new objects will be created relative to the center of the two previously selected windows.
 
== Group copies ==
 
Turning this on will group all resulting objects together. The default for '''Group copies''' is off.
 
== Offset (accumulative) ==
 
The three boxes here allow offset values for X, Y and Z. With each additional paste, the next object will be offset from the previous one by these values which are given in map units. The '<' buttons beside each box will automatically insert the current grid settings.
 
== Rotation (accumulative) ==
 
These settings work in the same fashion as the Offset values, except that they apply rotation with each successive paste.


To create a staircase using '''Paste Special''':
To create a staircase using '''Paste Special''':
Line 29: Line 21:
# Position the stair where you would like the staircase to begin.
# Position the stair where you would like the staircase to begin.
# Select '''Copy''' from the '''Edit Menu'''.
# Select '''Copy''' from the '''Edit Menu'''.
# Select '''Paste Special''' from the '''Edit Menu '''to bring up the dialog.
# Select '''Paste Special''' from the '''Edit Menu''' to bring up the dialog.
# Enter the number of additional stairs you wish to create in the '''Number of copies to paste''' field. The total should not include the original selection -- if you want thirty total stairs, enter twenty-nine in this field.
# Enter the number of additional stairs you wish to create in the '''Number of copies to paste''' field. The total should not include the original selection -- if you want thirty total stairs, enter twenty-nine in this field.
# Under the '''Offset '''section, click the arrow next to '''Z''' to read in the height of the stair. Increase this value for a steeper staircase
# Under the '''Offset''' section, click the arrow next to '''Z''' to read in the height of the stair. Increase this value for a steeper staircase
# Click the arrow next to '''X''' ''or'' '''Y''', depending on which direction your original stair faces.
# Click the arrow next to '''X''' ''or'' '''Y''', depending on which direction your original stair faces.
# Make sure '''Start at center of original''' is selected, so that the copies are aligned to the originals stair. Select '''Group copies''' if you wish the duplicates to be grouped together.
# Make sure '''Start at center of original''' is selected, so that the copies are aligned to the original stair. Select '''Group copies''' if you wish the duplicates to be grouped together.
# Press '''OK''' to create the stairs.
# Press '''OK''' to create the stairs.


 
[[Category: Hammer Dialogs]]
== Make pasted entity names unique ==
 
Every pasted entity will get an unique name.
If you copy 2 enities which have I/O connections to each other, the names used will change too.
 
 
== Add this prefix to all named entities ==
 
Named entities will get this as prefix.
Again if you copy 2 enities which have I/O connections to each other, the names used will change too.

Latest revision as of 18:16, 7 January 2024

English (en)Deutsch (de)Translate (Translate)

Hammer's Paste Special dialog can help you paste a copy of any objects in the clipboard into the current file, using special placement information entered into the dialog box. This allows multiple pasting of the clipboard contents with offsets and rotations. This relieves the work in creating an object that contains many identical elements. For instance, to create a picket fence you can make one rail, then copy it multiple times with an offset for each new rail.

Hammer PasteSpecial.png

Options

  • Number of copies to paste: This value controls the number of new copies that will be created by the operation.
  • Start at center of original: In the default On position, offsets and rotations are relative to the location and rotation of the original item in the clipboard. With it off, the new objects will be created relative to the center of the two previously selected windows.
  • Group copies: Turning this on will group all resulting objects together. The default for Group copies is off.
  • Offset (accumulative): The three boxes here allow offset values for the X, Y and Z axes. With each additional paste, the next object will be offset from the previous one by these values which are given in map units. The '<' buttons beside each box will automatically insert values according to size of the selection in the clipboard.
  • Rotation (accumulative): These settings work in the same fashion as the Offset values, except that they apply rotation with each successive paste.
  • Make pasted entity names unique: Every pasted entity will get a unique targetname. If you copy 2 entities which have I/O connections to each other, the targetnames used in the connections will change too.
  • Add this prefix to all named entities: Named entities will get this prefix added to their targetnames. Again, if you copy 2 entities which have I/O connections to each other, the targetnames used in the connections will change too.

An example

To create a staircase using Paste Special:

  1. Create a solid shape to be used as a single stair.
  2. Position the stair where you would like the staircase to begin.
  3. Select Copy from the Edit Menu.
  4. Select Paste Special from the Edit Menu to bring up the dialog.
  5. Enter the number of additional stairs you wish to create in the Number of copies to paste field. The total should not include the original selection -- if you want thirty total stairs, enter twenty-nine in this field.
  6. Under the Offset section, click the arrow next to Z to read in the height of the stair. Increase this value for a steeper staircase
  7. Click the arrow next to X or Y, depending on which direction your original stair faces.
  8. Make sure Start at center of original is selected, so that the copies are aligned to the original stair. Select Group copies if you wish the duplicates to be grouped together.
  9. Press OK to create the stairs.