array string back to Array

For example I have and array as a string

"#("con_Jim", "con_Jim2", "con_Jim3")"

Whats the best way to convert that back an an actual array?

#("con_Jim", "con_Jim2", "con_Jim3"

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JokerMartini's picture

That is what I ended up

That is what I ended up doing. I wasn't sure if there was a better or other way of doing it. I figured any other way would be more complicated.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Anubis's picture

execute(str)

str = #("MAX","Script","is","dead","funky") as string
--"#("MAX", "Script", "is", "dead", "funky")"
arr = execute str
--#("MAX", "Script", "is", "dead", "funky")

my recent MAXScripts RSS (archive here)

dmi3iy's picture

Thank you very much!

Thank you very much!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.