Community
Bifrost Forum
Welcome to the Bifrost Forum. This is the place for artists using Bifrost to ask and answer questions, browse popular topics, and share knowledge about creating effects procedurally using Bifrost. You can also visit the Bifrost Community on AREA to download an array of ready-to-use graphs, read Bifrost news and updates, and find the latest tutorials.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to remove duplicate elements in an array? like "list(set(some_array))" in python.

1 REPLY 1
Reply
Message 1 of 2
g2m.agent
322 Views, 1 Reply

How to remove duplicate elements in an array? like "list(set(some_array))" in python.

How to remove duplicate elements in an array?
Like this python code

 

 

t = [1, 2, 3, 1, 2, 3, 4]
list(set(t)) 
# [1, 2, 3, 4]

 

1 REPLY 1
Message 2 of 2
mjcg91
in reply to: g2m.agent

If you don't care about the order of the array, you could use sort_array_and_remove_duplicates from the Rebel-pack.

Maxime Jeanmougin - Technical Artist
https://maximejeanmougin.com

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report