.net - 如何在 Maxscript 中使用点网字符串.Split

标签 .net 3dsmax

如何在 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/

相关文章:

git - 我应该解析 git status 还是使用 gitsharp?

opengl-es - 将 3D Studio Max 模型 (3DS/MAX) 转换为适用于 iOS/OpenGL ES 兼容格式的 QCAR SDK?

3dsmax - 3ds Max 是否可以用 C++ 或 C# 而不是 Python 编写脚本?

.net 运行时 2.0 而不是最新版本?

c# - C# 中的 jscript document.getElementsByName

webgl - 如何在 WebGL 中渲染 FBX/3DS 模型?

3dsmax - 如何以编程方式为 3ds max 中的对象分配随机颜色?

c# - 何时以及如何交换 .NET 托管堆?

.net - 使用 jsonp 和基于 SSL/HTTPS 的 .NET Web 服务进行跨域 AJAX

c# - NLog - 结合保留天数和大小限制