List conversion

Hello,
I’m trying to convert the list on the left to the list on the right.
Can anyone help me.
I tried nearly everything (except python).

Raf.

There may be an easier way by utilizing lacing and levels, but you can use List Cycle and List Chop to get the result you are looking for. You may need to use Get Item at Index to separate the main list into two separate list so you can count the number of values at index 0 to know how many times to cycle the second list and to only cycle the items in the second list.

image

1 Like

RemoveItemAtIndex for 0 index, then flatten by 1 I think will get you there.

The List.cycle node did the trick!

Thank u Staylor and SeanP.

1 Like

Thanks for sharing, never knew about list.cycle, should come in handy :slight_smile:

1 Like