nico_guilty
07-03-2008, 03:56 PM
Hello,
I'm looking for creating a simple script to check if there is any duplicate name in a object selection.
Or an other way to do this but I didn't found anything yet.
I don't think it will be difficult.
My idea is to put my selection into an array like
objs = selection as array
then to create a loop to check if the first object name in the array equal other name in it too. so if there any duplicate, print them in the listener or in a file.txt
But I'm very new in maxscript and I'm not sure of the syntax to do it.
Is there somebody to help me?
Thank you
I'm looking for creating a simple script to check if there is any duplicate name in a object selection.
Or an other way to do this but I didn't found anything yet.
I don't think it will be difficult.
My idea is to put my selection into an array like
objs = selection as array
then to create a loop to check if the first object name in the array equal other name in it too. so if there any duplicate, print them in the listener or in a file.txt
But I'm very new in maxscript and I'm not sure of the syntax to do it.
Is there somebody to help me?
Thank you
