class
Hammer
public static abstract sealed class Hammer Properties
| Name | Type | Description |
|---|---|---|
MapAsset static | Asset | |
ActiveMap static | MapDocument | The active editor session's map document. |
Open static | Boolean | If the Hammer app has been opened. |
Window static | Window | The Hammer app's window. |
CurrentMaterial static | Material | Current Material - you can set this programmatically with Asset) |
Methods
static Void ReloadFromFile() Reloads the active editor session from file with user prompt
static Void SetCurrentMaterial(Asset asset) Sets the currently used material to the specified asset.
static Void SelectObjectsUsingAsset(Asset asset) Selects all map nodes using the asset, appending them to the current selection.
static Void SelectFacesUsingMaterial(Asset asset) Selects all faces using the asset, forces SelectMode to Faces
static Void AssignAssetToSelection(Asset asset) Assigns the asset to the current selection.
static Void ShowEntityReportForAsset(Asset asset) Opens a Entity Report dialog showing all entities using this asset.