Exports multiple packets of any type to a single World Machine library file (.tml), which a Library Input can load back later.
When to Use
- Reusable element libraries: Create reusable libraries of terrain elements that can be loaded back into World Machine with a Library Input for further processing.
- Batch exports: Export multiple related outputs together in one file, or batch several export operations into one device.
- Mixed collections: Store heterogeneous collections of terrain data. Each input port can accept a different packet type (heightfields, bitmaps, meshes, and so on) at the same time.
How to Use
Each wire you connect to Add Output… adds another input port, and whatever it carries becomes an item in the library, in any mix of packet types. By default the library is saved as <project>_<name>.tml in the project’s export folder.
- Wire each item you want to store into the Add Output… port (or set Number of Outputs first and wire the ports it creates)
- Set the output filename for the library file
- Build the world
- Press Write output to disk!, enable Output file on every build, or export all outputs at once with File > Export Terrain Files…
Inputs
The Library Output device has a variable number of input ports:
| Port Name | Type | Required/Optional | Description |
|---|---|---|---|
| (named after the connected device) | Any | Optional | Up to 32 inputs, each accepting any packet type. An unconnected port shows as Library Output |
| Add Output… | Any | Optional | Connecting a wire here adds a new input port. Shown until there are 32 ports |
Each port is labeled with the name of the device (or the output port) wired into it, and that name is what the item is called inside the library. Each input keeps its own resolution and extents, so the items do not have to match each other or the project.
Outputs
This device has no output ports (terminal device).
Parameters
Configuration
Number of Outputs – How many input ports the device has (0-32). Default: 0. Wiring into Add Output… raises it for you.
File Settings
Specify Output File… – Opens a file browser to choose where the library is saved. If the file name uses tags, the browser suggests the name placeholder: keep it to change only the folder and keep your tagged name, or type a new name to replace it.
File Name – Where to save the library file. Default: <project>_<name>.tml. The extension is always forced to .tml. Relative paths are resolved against the project’s export folder. Supports the same tags as the other output devices, such as <project>, <name>, <res>, <extent>, and <increment>.
Output file on every build – When enabled, the library is saved automatically after every build. Default: disabled
Actions
Write output to disk! – Saves the library now from the latest build. If the device has not been built at full resolution yet, World Machine offers to build it first.
Tips and Tricks
- A resolution override set on the device (or its group) applies to every stored item
- Items in the library are named after the devices wired into them, so give those devices clear names before exporting
Limitations
- This device only exports during normal builds, not tiled builds
Older Versions
Library Output devices from projects saved before Build 4067 ignore a device resolution override. They can be updated to the current version; if an override is active, updating changes what gets stored.