Studio Yotsuba
Back to Node List

Save Map Asset

save_map_asset

Saves an image as a tagged map asset with a sidecar .map.json

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
image
Image
Required
Image to register as a map asset

Output Ports

NameTypeDescription
Image
image
Image
Pass-through image
Metadata
metadata
Map
Saved sidecar metadata

Parameters

NameTypeDefaultRangeDescription / Options
Category
category
Enum
Noise—

Map asset category folder

  • NoiseNoise
  • MasksMasks
  • GradientsGradients
  • HeightHeight
Map Asset ID
asset_id
Text
user_map_asset—

Stable id used for filename and sidecar metadata

Name
name
Text
——

Display name

Tags
tags
Text
——

Comma-separated tags

Use Cases
use_cases
Text
——

Comma-separated use cases

Description
description
Text
——

English description shown in asset browsers

Description JA
description_ja
Text
——

Japanese description shown in asset browsers

Value Type
value_type
Enum
Grayscale—

Stored value type metadata

  • grayscaleGrayscale
  • binaryBinary
  • steppedStepped
  • colorColor
Tileable X
tileable_x
Bool
false—

Tileable horizontally

Tileable Y
tileable_y
Bool
false—

Tileable vertically

Save Trigger
_save_trigger
Int
00–999999

Internal counter incremented by the inspector save button

Overwrite Existing
_overwrite_existing
Bool
false—

Internal overwrite flag set by the inspector save button

Overview

Saves an image to the library as a tagged map asset. Turn generated noise, masks, and height maps into reusable assets that map_asset_load can retrieve. This is the writing side of the asset library.

Usage tips

  • Store frequently used base material. Saving a favorite noise pattern or gradient avoids rebuilding its generation chain in the next project.
  • Saving is triggered explicitly with the Inspector's Save button, a safe design that avoids writing on every evaluation.
  • Immediately after clicking Save, the Inspector reports that a save was requested. It shows success only after the matching evaluation returns _saved=true, or the NodeError when the save fails.
  • Tags and descriptions make the asset easier to find from map_asset_load.

Related nodes

  • map_asset_load — the loading counterpart
  • noise_generate / region_height — common sources of assets to save

Saves the input image as a PNG below user_data/library/maps and stores tags, descriptions, and other per-file metadata as xxx.map.json in the same folder.

Notes

Press the Save button in the Inspector when you want to save. To prevent unintentional writes on every evaluation, saving runs only when the button advances the internal trigger.

If an asset with the same asset_id already exists, choose whether to overwrite it or save under another ID such as asset_id_2. Choosing another ID also updates the Inspector's asset_id to the saved ID.

User-created assets are saved as two files: asset_id.png and asset_id.map.json. Copy both files together to load the same asset with its metadata in another environment without editing a manifest. Bundled presets and official packs are expected to continue using manifest.json.

The sidecar stores value_type using the lowercase canonical values grayscale, binary, stepped, or color. Display-style values in older graphs remain accepted as compatibility aliases.

Back to Node List