Studio Yotsuba
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

Input Ports

NameTypeDescription
List
list
List<Number>
Required
List to select an element from

Output Ports

NameTypeDescription
Item
item
Number
Selected element

Parameters

NameTypeDefaultRangeDescription / Options
Item Type
item_type
Enum
Number—

Choose which type of list this node should read

  • NumberNumber
    Create a list of numbers (Float or Int)
  • FloatFloat
    Create a list of float values
  • IntInt
    Create a list of integer values
  • BoolBool
    Create a list of boolean values
  • ColorColor
    Create a list of colors
  • TextText
    Create a list of text values
  • ImageImage
    Create a list of images
  • PathPath
    Create a list of paths
  • PixelLinePixelLine
    Create a list of pixel lines
  • Vec2Vec2
    Create a list of 2D vectors
  • Vec3Vec3
    Create a list of 3D vectors
  • OklchAdjustOklchAdjust
    Create a list of OKLCH adjustment sets
  • PalettePalette
    Create a list of palettes
  • ListList
    Create a nested list (list of lists)
  • MapMap
    Create a list of maps
  • TextLayoutTextLayout
    Create a list of text layouts
  • PixelPatchPixelPatch
    Create a list of pixel patches
  • RecordedLayerRecordedLayer
    Create a list of recorded layers
  • AnimationClipAnimationClip
    Create a list of animation clips
  • AsepriteFileAsepriteFile
    Create a list of Aseprite documents
  • RuleGridSpecRuleGridSpec
    Create a list of rule grid specs
  • RuleTileSetRuleTileSet
    Create a list of rule tile sets
  • RuleTileAssetRuleTileAsset
    Create a list of rule tile assets
  • RuleSetRuleSet
    Create a list of rule sets
  • RuleCanvasRuleCanvas
    Create a list of rule canvases
  • RuleResolvedRuleResolved
    Create a list of resolved rule tile placements
  • RuleTileAtlasRuleTileAtlas
    Create a list of rule tile atlases
  • NineSliceNineSlice
    Create a list of nine-slice UI documents
  • FxState2DFxState2D
    Create a list of 2D FX states
  • SpriteSheetSpriteSheet
    Create a list of sprite sheets
  • VariantSnapshotVariantSnapshot
    Create a list of variant snapshots
  • VariantRecipeVariantRecipe
    Create a list of variant recipes
  • VariantRecordVariantRecord
    Create a list of variant records
  • IsoItemIsoItem
    Create a list of iso items
  • IsoSceneIsoScene
    Create a list of iso scenes
  • IsoWorldIsoWorld
    Create a list of iso worlds
  • TileAssetTileAsset
    Create a list of tile assets (e.g. to feed tile_palette_create)
  • TilePaletteTilePalette
    Create a list of tile palettes
  • TileCanvasTileCanvas
    Create a list of tile map canvases
  • TileResolvedTileResolved
    Create a list of resolved tile placements
  • AnyAny
    Advanced: allow any element type. Mixed lists may connect, but downstream nodes can fail if the extracted value type does not match what they expect.
Index
index
Int
00–1024

Element index (0-based). Promotable for dynamic selection.

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