Repository navigation
node item at index
< Previous: Flatten | Next: List Length >
Pull one item out of a list by its position (0-based; negative counts from the end).
Category: Data | Add menu: Data > Item at Index
- List (any): the list to pull an item out of.
- Index (number): which item to pull, 0-based (negative counts from the end). A list of indices pulls one item per index, see below.
- Item (any): the single item at that index, or a list of items when Index is a list.
Wire a single number into Index and you get one item out. Wire a list of numbers in and Item at Index picks one item per index and returns the whole set, in the order the indices came.
That is what makes a per-item pick possible: a Series of seeds through Random gives a list of indices, and that list through Item at Index gives a different item for every position. Feeding a color list in that way is how each item in a collection ends up with its own color.
Geometry items are not the only thing it reads. A plain list of colors, numbers or strings, the kind Collect produces from non-geometry inputs, indexes by position under the same contract: 0-based, negative counting from the end.
< Previous: Flatten | Next: List Length >
Points inside a group are not items of their own: they travel with the member they belong to. See Lists & collections.
- Collect: build the list to index into | List Length - how many items there are, which bounds the Index.
- Lists & collections | Data nodes
Found a bug or have feedback? Open an issue | Docs home | Videos | Credits
Getting Started
- Welcome
- How Locus came to be
- Videos
- Community & support
- Installing & launching
- Licensing & activation
- Beta License Agreement
- Core concepts
- Interface tour
- Your first pattern
Modeling - Drawing
- Canvas basics
- Points
- Typing coordinates
- Lines, rays & segments
- Circles & arcs
- Ellipses
- Compass & straightedge
- Rectangles & squares
- Constraining with Shift
Modeling - Editing
- Selecting objects
- Transform tools
- Align & distribute
- Duplicate, detach & ownership
- Regions & booleans
- Cleanup
- Weld & seams
- Style palettes & Re-ink
Annotation
Layers
Modeling Menus
- File
- Edit
- View
-
Draw
- Select
- Point
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Through 3 Points
- Arc: Center, Start, End
- Straightedge
- Compass
- Compass: Radius
- Ellipse: Center + Axes
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center, Vertex
- Regular Polygon: Center, Edge Midpoint
- Dimension: Linear
- Dimension: Angle
- Dimension: Radial
- Label
- Construct
- Combine
- Transform
- Select
- Nodes
The Nodes Window
- Basics of visual programming
- How the node graph works
- Sockets & wires
- Adding & connecting nodes
- Sliders & number inputs
- Keeping the node graph tidy
- View menu (Nodes)
- Lists & collections
- Constants & unit conversions
Node Library
- Overview
- Input
-
Primitives
- Point
- Point: Polar
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Apollonius
- Circle Tangent to...
- Circle: 3 Points
- Arc
- Ellipse
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center
- Rectangular Grid
- Oblique Grid
- Triangular Grid
- Construct
- Transform
- Image & Fields
- Combine
-
Data
- Measure
- Numbers
- Lists
- Select
- Clean up
- Display
Clusters
Bridging Modeling & Nodes
Patterns & Symmetry
Image-Driven Fields
Saving, Exporting & Files
Preferences & Language
CLI
Reference

