Hi,
I have a little question about remove duplicates from structure via maxscript,below is the code:
test_array[1] and test_array[3] is the same, how to remove duplicates?
test_array=#()
struct test_struct (test_01,test_02)
append test_array (test_struct test_01:"a" test_02:"w")
append test_array (test_struct test_01:"b" test_02:"xc")
append test_array (test_struct test_01:"a" test_02:"w")
append test_array (test_struct test_01:"c" test_02:"n")
append test_array (test_struct test_01:"d" test_02:"w")
a=makeUniqueArray test_array
The output is:
(test_struct test_01:"a" test_02:"w")
(test_struct test_01:"b" test_02:"xc")
(test_struct test_01:"a" test_02:"w")
(test_struct test_01:"c" test_02:"n")
(test_struct test_01:"d" test_02:"w")
OK