ReferenceScript nodesUtilities › List
Swap
Swaps the items at two indices round.
ƒSwap
Target List
First Index0
Second Index1
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Target Listlist | list | – | – |
First Indexfirst | int | 0 | – |
Second Indexsecond | int | 1 | – |
Outputs
| Pin | Type |
|---|---|
then | what happens next |
In a graph
◆On Scene Start
ƒSwap
Target List
First Index0
Second Index1
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.