Shifting Sublists

Hi All, I’m new to the forum as well as Dynamo… I’m hung up on something that I believe should be a fairly simple exercise. I’m trying to figure out how to shift indices in a sub-list.

This is simplified, but how would I go about using the Shift List Indices node to turn this:
[0]
— [0]
— [1]
— [2]
[1]
— [0]
— [1]
— [2]
[2]
— [0]
— [1]
— [2]

Into this…

[0]
— [0]
— [1]
— [2]
[1]
— [1]
— [2]
— [0]
[2]
— [2]
— [0]
— [1]

Thanks!

@landon.wilson

Try this:

Don’t forget to change the lacing of the ShiftIndeces node

1 Like

I would suggest to rather feed this into the “amount” input - it’s an incremental shift that will work with any number of sublists:

3 Likes

Great stuff, it works just as intended. Saved me 40 nodes of deconstructing lists…

Thanks guys!

@landon.wilson
Please mark the solution :smiley: