makeUniqueArray function
Do you familiar with array and bitarray ?
Let's check in my head about it :p
makeUniqueArray <array>
it's Available in 3ds Max 2008 and higher. Previously available in the free [AVG] Avguard Extensions.
if you are using 3ds Max 9 and Lower without installing [AVG] Avguard Extensions,
you can create a similar function , such as:
fn makeuniquearrayX arr =((arr as bitarray) as array)
explain: the array will convert to bitarray then convert to array again
example to using it:
fn makeuniquearrayX arr =((arr as bitarray) as array) -- create function thearray = #(1,2,2,3,4,5,5,5,5,6) -- make a variable makeuniquearrayX thearray -- execute with makeuniquearrayX function -- #(1,2,3,4,5,6) -- it's result
but this example can't work if the array are string or etc.
array must contain the numbers.
Yup, You have to make a long function.
I hope this is useful for someone in somewhere :)
Regards
Budi Gunawan
- Budi G's blog
- Login or register to post comments