ReferenceScript nodesUtilities › List
Insert
Puts an item in at an index, moving the rest along (an index below 0 or past the end does nothing).
ƒInsert
Target List
New Item
Index0
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Target Listlist | list | – | – |
New Itemitem | any | – | – |
Indexat | int | 0 | – |
Outputs
| Pin | Type |
|---|---|
then | what happens next |
In a graph
◆On Scene Start
ƒInsert
Target List
New Item
Index0
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.