List Replace items at an index

Hi All ! I am trying to replace certain items with a list of items and a list of the index corresponding to each item, but the node isn’t understanding to replace for each item in the list. How to accomplish that ??

The core ReplaceItemAtIndex node will only replace a single item in a single list. If you want to replace multiple items in a single list you’ll need to use a custom node (I can’t think of a specific one right now but there are a few options within the most common packages). The other option is python.

1 Like

please use clockwork replaceitematindex+

image

4 Likes

Hello, with the use of dictionaries (But the custom node goes much faster)

Cordially
christian.stan

Amigo @newshunhk Buenas.
I leave you an example, to filter and to compare lists is not an easy task, there is not a find and replace, in dynamo to understand this is a headache, with the node that you are using: List.ReplaceItemAtIndex you must take care of the levels of the lists, sometimes I use the == node to get a true false list and use the if node to insert the value I want only in the cases that is true or false!