如何在 maxscript 中使用 dot net 的 Split 方法? 我搜索了maxscript中是否有这样的函数,但没有找到。
最佳答案
我有两个好消息要告诉你
I've searched if there is such function in maxscript but I didnt found any
您可以使用maxscript native FilterString函数,如下所示:
mystring = "my_string_literate"
FilterString mystring "_"
How can I use the Split method from dot net in maxscript?
mystring = DotNetObject "System.String" "my_string_literate"
mystring.split "_"
两种方法都会返回 native maxscript 数组:
#("my", "string", "literate")
关于.net - 如何在 Maxscript 中使用点网字符串.Split,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33414514/