node shift - blossommerz/locus-hub GitHub Wiki
< Previous: Reverse | Next: Sort >
Rotate a list's order by an amount, wrapping around.
Category: Data | Add menu: Data > Shift
- Geometry (any): the list to rotate.
- Amount (number, editable: default 1) - how many places to rotate. Positive moves front items to the back; it wraps around, so nothing is lost.
- Geometry (any): the same items in rotated order.
Cycles a list without dropping anything: with Amount 1, item 0 moves to the back, item 1 becomes first, and so on, wrapping around. Use it to re-phase an index-driven pattern, or to align two lists that a Place or variant node reads index-for-index - nudge one until the pairing lines up.
< Previous: Reverse | Next: Sort >
- Reverse: flip the order instead of rotating it
- Sort: reorder by a measured key
- Lists & collections: how a list travels one wire
