Friday, April 25, 2014

keep one for those objects have same name

A useful script to find all the objects have same name and keep one of them

allNames = #()

duplicateObjs = #()

for obj in objects do

(

if findItem allNames obj.name == 0 then append allNames obj.name else append duplicateObjs obj

)

delete duplicateObjs

No comments: