Notifications
Clear all

[Closed] Delete Duplicated objects

hi guys
i have a .fbx file exported from naviswork , after import in 3dsmax every object duplicated with same name , for example i have 2 cylinder with same name and 2 box with same name and 2 teapot with same name , i want to delete duplicated objects.

can u show me how do that ?

thanx (sorry for my english)

2 Replies

There are many ways to do that, this is 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

It collects the names of all objects and if it finds the current object’s name among them it appends it to duplicateObjs array. At the end this array of objects is deleted.

thank u dude