Studio Yotsuba
Back to Node List

List Unpack

list_unpack

Unpacks list elements into individual outputs

Reviewed
Guide available

Input Ports

NameTypeDescription
List
list
List<Number>
Required
Input list to unpack

Output Ports

NameTypeDescription
Item 0
item_0
Number
List element 0
Item 1
item_1
Number
List element 1
Item 2
item_2
Number
List element 2
Item 3
item_3
Number
List element 3
Count
count
Int
Number of elements in the list

Parameters

NameTypeDefaultRangeDescription / Options
Item Type
item_type
Enum
Number—

Choose which type of list this node should unpack

  • 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.
Outputs
count
Int
41–16

Number of output slots

Overview

Splits a list into individual output ports (the reverse of list_create). Use it to separate list elements into different wires and send each one through different processing or previews.

Usage tips

  • Its main use is distribution where each element has a different role, such as splitting a four-color palette into four wires and assigning each color to a different part.
  • If every element gets the same processing, use list_map; there is no need to split the list. Unpack only when the processing differs by element.
  • The slot count (the count parameter) is at most 16. Elements beyond that are not output, so use list_slice first if you need to select a range.

Related nodes

  • list_create — reverse direction (individual values → list)
  • list_get — when one element is enough
  • channel_split — a similar operation for image channels
  • palette_get — a more direct choice for one color from a palette

Technical details

  • item_type links the type of the list input and each item_n output.
  • count is the number of visible output slots, separate from the actual list length.
  • The count output returns the number of elements in the list that arrived.
  • A Palette can be unpacked as List<Color>.
  • Any can unpack mixed lists, but downstream nodes may warn about type mismatches.

Examples

  • Split a List<Image> into outputs for multiple previews or branches.
  • Unpack a color palette and send each color to a separate node.
  • Use the count output so another node can read the current number of valid candidates.
Back to Node List