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
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
画像
image
Image
Required
マップ素材として登録する画像です

Output Ports

NameTypeDescription
画像
image
Image
そのまま流した画像です
メタ情報
metadata
Map
保存した個別メタ情報です

Parameters

NameTypeDefaultRangeDescription / Options
カテゴリ
category
Enum
Noise

保存するマップ素材カテゴリです

  • ノイズNoise
  • マスクMasks
  • グラデーションGradients
  • 高さHeight
マップ素材ID
asset_id
Text
user_map_asset

ファイル名と個別メタに使うマップ素材IDです

名前
name
Text

表示名です

タグ
tags
Text

カンマ区切りのタグです

用途
use_cases
Text

カンマ区切りの用途です

説明
description
Text

素材ブラウザで表示する英語説明です

説明(日本語)
description_ja
Text

素材ブラウザで表示する日本語説明です

値の種類
value_type
Enum
Grayscale

素材の値の種類メタ情報です

  • グレースケールGrayscale
  • 白黒Binary
  • 段階Stepped
  • カラーColor
左右ループ可
tileable_x
Bool
false

左右にループ可能かです

上下ループ可
tileable_y
Bool
false

上下にループ可能かです

保存トリガー
_save_trigger
Int
00–999999

インスペクターの保存実行ボタンが増やす内部カウンターです

既存を上書き
_overwrite_existing
Bool
false

保存実行時にインスペクターが設定する内部フラグです

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
Save Map Asset — PixPipeline Node Reference