【问题标题】:How to use dot net string.Split in MaxscriptMaxscript中如何使用dot net string.Split
【发布时间】:2016-01-29 14:40:29
【问题描述】:

如何在 maxscript 中使用 dot net 的 Split 方法? 我已经搜索过maxscript中是否有这样的功能,但我没有找到。

【问题讨论】:

    标签: .net 3dsmax


    【解决方案1】:

    我有两个好消息要告诉你

    我已经搜索过maxscript中是否有这样的功能,但没有找到

    您可以像这样使用 maxscript 原生 FilterString 函数:

    mystring = "my_string_literate"
    FilterString mystring "_"
    

    如何在 maxscript 中使用 dot net 的 Split 方法?

    mystring = DotNetObject "System.String" "my_string_literate"
    mystring.split "_"
    

    这两种方法都会返回原生 maxscript 数组:

    #("my", "string", "literate")
    

    【讨论】:

    • 感谢您的回答
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-03-01
    • 1970-01-01
    • 2020-04-29
    • 1970-01-01
    • 2016-02-15
    • 2014-02-05
    • 2020-02-24
    相关资源
    最近更新 更多