Is it posible in maxscript to have something like map in C++? I would really like to do something like this in maxscript:
map["name1"]=1
and if I do later something like this:
x=map["name1"]
x should have the value 1.
This is just a simple example.
Comments (4)
Comment policy
Dictionary
See the Dictionary Values topic in the maxscript reference.
This Dictionary looks like exactly what I need, but unfortunately it´s only avaible since Max 2017, which make it useles for me.
you can access collection members like that, but not the elements of arbitrary array
read about bsearch in mxs reference or look for examples at cgsociety.org maxscript related section
I don´t want to acces scene object in this case.