I’m having difficulties figuring out how to remove duplicate items from my list. To clarify, I need the duplicate items (and singular items) to appear only once. Per my image below (one example) my list is populated with the same parameter multiple times (item#2 and item#46) and I’d like only one instance of that parameter to appear. I’ve tried figuring out how to handle this with a boolean filter but am not sure how to proceed with that logic. I’m on dynamo 2.0 and thanks in advance!
Hello, for list-logic you can use the list.UniqueItems node that outputs only the first occurrence of an item in a list and discards the rest.
Edit*
In your case here the duplicate parameters are actually different parameters with their own id so the UniqueItems node probably won`t work.
Thanks for the quick response Sorin but yes I tried the UniqueItems node and that didn’t work for me. My understanding of the UniqueItems node is that the output only displays items unique in the list so if there are duplicates, all of those items are removed (please correct me if I’m wrong). In this case the unique elements node doesn’t remove any items from my list. See snipit below. I did confirm that the parameters across these elements are using the same shared parameter so that adds confusion to what I thought was logical.
I’m going to try that now and will report back shortly. Thanks again for the quick response (it was quicker than my reply)!
It appears for my specific situation that once my list was converted to string that the unique items node did the trick all on its own! Much appreciation Sorin!
Any update on this functionality. I am facing the same issue