Is it possible to check for duplicate render elements by Element name and ObjectID and delete duplicates. I have done endless Google searches and cant seem to find anything referring to deleting duplicate render elements. I'm also fairly new to maxscript so I am struggling to know where to even start.
Obviously I would tend to name elements uniquely but have recently come across duplications when merging elements in from other scenes. It's not the end of the world, but you end up with multiple renders of the same ObjectID which I guess uses unnecessary RAM at render time.
Example:
Matte (ObjectID = 50) Duplicated because of same name and ID
Matte (ObjectID = 50) Duplicated because of same name and ID
Matte (ObjectID = 30) Not Duplicated as ObjectID is different
(Delete all duplicates, leaving one iteration of the element in the list)
Any help would be much appreciated.
Anubis · 2012-11-13
andrewfox · 2012-11-09
br0t · 2012-11-07