Why is the OOTB node (List.ReplaceItemAtIndex) reacting so strange the one from Archilab is working correctly.
All the input is one level
Hard to tell without seeing you whole graph
(or maybe someone can).
List.ReplaceItemAtIndex (and List.ReplaceItemAtIndices) do not appear to be able to modify multiple indices in a single list, even if you change the list level of the items to @1
Archilab appears to have depreciated the Lists.ReplaceItemAtIndex node
Clockwork does have a List.ReplaceItemAtIndex+ node
Or you could use some python…
from itertools import zip_longest
def to_list(item):
if isinstance(item, list):
return item
return [item]
list_data = IN[0]
indices = to_list(IN[1])
items = to_list(IN[2])
# Checks
assert isinstance(list_data, list), "IN[0] is not a list"
# for loop will repeat the last item if there are more indices than items
for index, item in zip_longest(indices, items, fillvalue=items[-1]):
list_data[index] = item
OUT = list_data
thank you