Library Input

Loads a previously saved data collection from a World Machine Library file (.tml) back into your world.

When to Use

Library files can contain multiple outputs of any type — heightfields, bitmaps, VDMs, and more. Use Library Input for:

  • Reloading earlier work: Reload a complete set of terrain data from a prior session.
  • Picking up data from elsewhere: Read a library file that another project or tool rewrites; Auto-refresh on build picks up the new data on every full build.
  • Placing loaded data yourself: With Force localspace, bring the data in as localspace objects to place manually with a Scatter or Placer device.

How to Use

Set File Name to a .tml library file. Each output stored in the library becomes an output port on this device, ready to connect to the rest of your graph.

  1. Choose the library file in File Name.
  2. Connect the output ports you need.
  3. If the file changes on disk, press Refresh to reload it, or turn on Auto-refresh on build.

Inputs

This device has no inputs.

Outputs

The number and type of output ports are determined dynamically by the contents of the loaded library file. Each output in the file becomes a separate output port on the device, named and typed after the data stored in that slot of the library. Slots that were left empty when the library was saved appear as (Unused) ports. If a slot cannot be read from the file, the device shows a warning naming that output; a newly added port for it is labeled (Failed to load), while an existing port keeps its name and wires.

If the file on disk has changed which kinds of data it holds since the device was set up, the build stops with an error asking you to refresh the device; press Refresh to rebuild the ports from the new file.

Data that was saved in world space is placed back at its saved location in your current world, resampled to the current build resolution. Data saved in local space keeps its own extent and resolution. In both cases heights are read against your current project’s height range, so a library saved from a project with a different height range comes back at the same fraction of this project’s range, not at the same elevation in meters.

Parameters

File Name

The path to the .tml library file to load.

Refresh

Reloads all data from the file on disk, updating the device outputs. The Synchronize from disk device action does the same thing.

Force localspace (Advanced)

When enabled, all loaded data is imported as localspace objects regardless of the spatial information stored in the library. No rescaling or automatic placement will be performed. This is useful when you want to manually place the loaded data using a Scatter or Placer device.

Auto-refresh on build (Advanced)

When enabled, the library file is re-read from disk at the start of every full build (not during previews), so a file that another project or tool has rewritten is always picked up without pressing Refresh. Default: off.

Rescaling Settings (Advanced)

Rescaling Type — The resampling algorithm used when the library data needs to be rescaled to match the current build resolution. Options: (World Default) (the default, uses the project’s rescaling setting), Nearest Neighbor, Bilinear, Bicubic Soft, Bicubic Tuneable, Fractal, Set-Preserving.

Roughness — Tunes the selected rescaling method, such as how much fine detail Fractal adds. Default: 0.5. Range: 0 to 1. Only enabled when Rescaling Type is Bicubic Tuneable, Fractal, or Set-Preserving.

Updated on December 3, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support