About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
thank you barigazy
I already did my own function and if some one want to use it here is it :)
fn mkUniqueArray Arr =
(
local arr1=#()
for i=1 to arr.count do
(
if (finditem arr1 arr[i])==0 then append arr1 arr[i]
)
arr = arr1
)
make unique array function
This is maybe the solution for your problem (by Denis Trofimov [denisT])
fn uniqueArray Arr =
(
hashes = #()
for a in theArray where (finditem hashes (h = gethashvalue a 0)) == 0 collect (append hashes h; a)
)
yyy= #("a","b","a")
nevArr = uniqueArrays yyy
bga
Oh found why..
I found why it don't work the problem is because this one is available with avguard extension...I have it for max7 but dont have it for other...and it should be automatically added for 2011.
so if some have the same problem this will work only if you have avguard... hope it help...