Back to Node List

List Get

list_get

Selects a single element from a list by index. Out-of-range indices are clamped.

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
リスト
list
List<Number>
Required
要素を選ぶ対象のリストです

Output Ports

NameTypeDescription
要素
item
Number
選ばれた要素です

Parameters

NameTypeDefaultRangeDescription / Options
要素の型
item_type
Enum
Number

このノードが読み取るリスト要素の型を選びます。Any は上級者向けです。

  • 数値(汎用)Number
    Float と Int の両方を扱える数値リストです
  • 小数Float
    小数値のリストです
  • 整数Int
    整数値のリストです
  • ON/OFFBool
    ON/OFF のリストです
  • Color
    色のリストです
  • 文字Text
    文字のリストです
  • 画像Image
    画像のリストです
  • パスPath
    パスのリストです
  • ピクセル線PixelLine
    ピクセル線のリストです
  • Vec2Vec2
    2D ベクトルのリストです
  • Vec3Vec3
    3D ベクトルのリストです
  • OKLCH補正OklchAdjust
    OKLCH基準の明るさ・鮮やかさ・色相・透明度の補正セットのリストです
  • パレットPalette
    パレットのリストです
  • リストList
    リストのリストを作ります
  • マップMap
    マップのリストです
  • 文字レイアウトTextLayout
    文字レイアウトのリストです
  • ピクセルパッチPixelPatch
    ピクセルパッチのリストです
  • 記録レイヤーRecordedLayer
    記録レイヤーのリストです
  • アニメーションクリップAnimationClip
    アニメーションクリップのリストです
  • AsepriteファイルAsepriteFile
    Aseprite document のリストです
  • ルールグリッドRuleGridSpec
    RuleGridSpec のリストです
  • ルールタイルセットRuleTileSet
    RuleTileSet のリストです
  • ルールタイル素材RuleTileAsset
    RuleTileAsset のリストです
  • ルールセットRuleSet
    RuleSet のリストです
  • ルールキャンバスRuleCanvas
    RuleCanvas のリストです
  • 解決済みルール配置RuleResolved
    RuleResolved のリストです
  • ルールタイルアトラスRuleTileAtlas
    RuleTileAtlas のリストです
  • 9スライスNineSlice
    9スライスUI素材のリストです
  • 2D FX 状態FxState2D
    FxState2D のリストです
  • スプライトシートSpriteSheet
    スプライトシートのリストです
  • バリアントスナップショットVariantSnapshot
    variant snapshot のリストです
  • バリアントレシピVariantRecipe
    variant recipe のリストです
  • バリアントレコードVariantRecord
    variant record のリストです
  • IsoItemIsoItem
    IsoItem のリストです
  • IsoSceneIsoScene
    IsoScene のリストです
  • IsoWorldIsoWorld
    IsoWorld のリストです
  • タイル素材TileAsset
    タイル素材のリストです(tile_palette_create の入力などに使います)
  • タイルパレットTilePalette
    タイルパレットのリストです
  • タイルマップTileCanvas
    タイルマップのリストです
  • 解決済みタイル配置TileResolved
    解決済みタイル配置のリストです
  • Any(上級者向け)Any
    上級者向けです。どの型でも混ぜられますが、取り出した値の型が下流ノードの期待と合わないと実行時エラーになります。
インデックス
index
Int
00–1024

取得する要素の番号です(0始まり)。📌 で入力ピン化して動的に切り替えられます。

Overview

Takes one element at position N from a list. It is an exit point for list-based workflows, selecting one candidate (image, number, color, and so on) from a bundle.

Usage tips

  • Promote index to an input pin 📌 and connect an integer that changes over time to cycle through the list (frame-by-frame animation or color cycling).
  • This is also a common conversion point for taking one value from a list produced by variant_range and returning to ordinary wiring.
  • For a small set of manually arranged candidates, value_select is more direct because it does not require a list.

Related nodes

  • list_create — create the source list
  • value_select — N-way selection without a list
  • int_input — external control for the index
  • list_slice / list_filter — when you need a subsequence rather than one element

Read this first

  • List Get selects exactly one candidate.
  • Indices are zero-based: the first element is 0, the second is 1.

Start with this example

Suppose the input list is:

[10, 20, 30]

Example 1: index = 1

item = 20

Example 2: index = 0

item = 10

Example 3: index = 99

An out-of-range index does not produce an error; it is clamped to the last element.

item = 30

When to use it

  • When you want to take exactly one item from a set of candidates
  • When you want to use only one image from a group assembled with List Create
  • When you want to drive the index with an Int node or animation to switch the selection

Notes

  • The upper limit of the Inspector's index slider adjusts automatically to the list length.
  • An empty list produces no output, so no value flows downstream.
  • A Palette can be treated as List<Color>.
Back to Node List
List Get — PixPipeline Node Reference