Back to Node List

Value Select

value_select

Selects one value from multiple same-type inputs by index

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
候補 0
item_0
Number
選択候補 0
候補 1
item_1
Number
選択候補 1
候補 2
item_2
Number
選択候補 2
候補 3
item_3
Number
選択候補 3

Output Ports

NameTypeDescription
value
Number
選ばれた値です

Parameters

NameTypeDefaultRangeDescription / Options
候補の型
value_type
Enum
Number

このノードで選ぶ候補の型を指定します。全候補は同じ型で接続してください。

  • 数値(汎用)Number
    このノードで数値(汎用)型の値を扱います
  • 小数Float
    このノードで小数型の値を扱います
  • 整数Int
    このノードで整数型の値を扱います
  • ON/OFFBool
    このノードでON/OFF型の値を扱います
  • Color
    このノードで色型の値を扱います
  • 文字Text
    このノードで文字型の値を扱います
  • 画像Image
    このノードで画像型の値を扱います
  • パスPath
    このノードでパス型の値を扱います
  • ピクセル線PixelLine
    このノードでピクセル線型の値を扱います
  • Vec2Vec2
    このノードでVec2型の値を扱います
  • Vec3Vec3
    このノードでVec3型の値を扱います
  • OKLCH補正OklchAdjust
    このノードでOKLCH補正型の値を扱います
  • パレットPalette
    このノードでパレット型の値を扱います
  • リストList
    このノードでリスト型の値を扱います
  • マップMap
    このノードでマップ型の値を扱います
  • 文字レイアウトTextLayout
    このノードで文字レイアウト型の値を扱います
  • ピクセルパッチPixelPatch
    このノードでピクセルパッチ型の値を扱います
  • 記録レイヤーRecordedLayer
    このノードで記録レイヤー型の値を扱います
  • アニメーションクリップAnimationClip
    このノードでアニメーションクリップ型の値を扱います
  • AsepriteファイルAsepriteFile
    このノードでAsepriteファイル型の値を扱います
  • ルールグリッドRuleGridSpec
    このノードでルールグリッド型の値を扱います
  • ルールタイルセットRuleTileSet
    このノードでルールタイルセット型の値を扱います
  • ルールタイル素材RuleTileAsset
    このノードでルールタイル素材型の値を扱います
  • ルールセットRuleSet
    このノードでルールセット型の値を扱います
  • ルールキャンバスRuleCanvas
    このノードでルールキャンバス型の値を扱います
  • 解決済みルール配置RuleResolved
    このノードで解決済みルール配置型の値を扱います
  • ルールタイルアトラスRuleTileAtlas
    このノードでルールタイルアトラス型の値を扱います
  • 9スライスNineSlice
    このノードで9スライス型の値を扱います
  • 2D FX 状態FxState2D
    このノードで2D FX 状態型の値を扱います
  • スプライトシートSpriteSheet
    このノードでスプライトシート型の値を扱います
  • バリアントスナップショットVariantSnapshot
    このノードでバリアントスナップショット型の値を扱います
  • バリアントレシピVariantRecipe
    このノードでバリアントレシピ型の値を扱います
  • バリアントレコードVariantRecord
    このノードでバリアントレコード型の値を扱います
  • IsoItemIsoItem
    このノードでIsoItem型の値を扱います
  • IsoSceneIsoScene
    このノードでIsoScene型の値を扱います
  • IsoWorldIsoWorld
    このノードでIsoWorld型の値を扱います
  • タイル素材TileAsset
    このノードでタイル素材型の値を扱います
  • タイルパレットTilePalette
    このノードでタイルパレット型の値を扱います
  • タイルマップTileCanvas
    このノードでタイルマップ型の値を扱います
  • 解決済みタイル配置TileResolved
    このノードで解決済みタイル配置型の値を扱います
  • Any(上級者向け)Any
    上級者向けです。どの値型でも扱えますが、下流ノードの期待と合わないと実行時エラーになります。
候補数
count
Int
41–16

入力候補スロットの数です

選択番号
index
Int
00–15

次へ流す候補番号です。入力ピン化して外部から動かせます。範囲外は先頭/末尾に丸めます。

What is it for?

  • Selecting one created image variant to pass downstream
  • Switching color, number, palette, and other candidates by index
  • Promoting index to an input pin and switching candidates over time from a numeric node

Overview

An N-way switch that selects one of several candidates by number. It extends the two-way switch and is useful for choosing image variants or stepping through discrete options.

Usage tips

  • Manual selection is the basic pattern: arrange candidates and compare them with index, such as alternative colors or shapes.
  • Promote index to an input pin 📌 and connect an integer waveform or counter to animate through candidates in order. If the input is fractional, convert it to an integer first with math_func(Floor).
  • For a dynamic or large number of candidates, a list with list_create + list_get scales better. Value Select suits a small set of manually arranged candidates.

Related nodes

  • switch — two choices controlled by a Bool
  • list_get — retrieve by index from a list, the list-based equivalent
  • int_input — externalize the selection index
  • variant_select — selection in a variant workflow

Notes

  • index is zero-based, starting at 0. index = 2 selects item_2.
  • An out-of-range index is clamped to the first or last candidate.
  • If the selected input is unconnected, the node first falls back to item_0. If item_0 is also unconnected, it uses the first connected candidate.
  • Only when no candidates are connected does value become an empty output.
  • Changing value_type also changes the types of candidate inputs and the value output.
  • Normally, connect the same type to every candidate.
  • This is a normal evaluation node. Connected candidate branches are graph dependencies. Unchanged candidates are cached, but this is not a Lazy Select that completely excludes unselected branches from evaluation.
  • Any is for advanced use. A connection may be accepted, but if the selected value does not match the type expected downstream, evaluation produces a warning or node error.

Examples

  1. Select one of four image candidates
    • Set value_type = Image.
    • Connect images to item_0..item_3.
    • Switch the chosen candidate with index.
  2. Switch images over time
    • Promote index to an input pin and connect it from Time Source or a numeric node.
  3. Switch among several color candidates
    • Set value_type = Color.
    • Pass the selected color to a downstream color input.
  4. Switch among palette candidates
    • Set value_type = Palette.
    • Use it to compare appearances with different palettes.
Back to Node List
Value Select — PixPipeline Node Reference