【问题标题】:pymxs alternatives to the deprecated MaxPlus utility functionspymxs 替代已弃用的 MaxPlus 实用程序函数
【发布时间】:2021-08-24 00:11:17
【问题描述】:

随着 Autodesk 从 3ds Max 中删除 MaxPlus,我现在不得不重新编写一些代码,并且想知道是否有其他方法可以访问某些 MaxPlus 实用程序功能。虽然我认为将 python 开发整合到 pymxs 下的决定是一个很好的决定,但如果 pymxs 不支持的 MaxPlus 功能能够预先移植过来就好了。

我现在需要找到解决方案的已弃用 MaxPlus 实用函数的示例:

MaxPlus.ViewportManager.GetActiveViewportShowEdgeFaces()
MaxPlus.PathManager.GetProjectFolderDir()
MaxPlus.PathManager.GetAutobackDir()

任何帮助我指出正确的方向,将不胜感激。

【问题讨论】:

    标签: python 3dsmax maxscript 3ds


    【解决方案1】:

    大部分视口功能都位于 NitrousGraphicsManager 类中,所以对于您的第一个,请尝试:

    >>> graphicsmanager = 
    pymxs.runtime.NitrousGraphicsManager.GetActiveViewportSetting()
    >>> graphicsmanager.ShowEdgedFacesEnabled
    False
    >>> graphicsmanager.ShowEdgedFacesEnabled = True
    

    您可以在 pathconfig 结构中找到第二个:

    pymxs.runtime.pathconfig.getCurrentProjectFolderPath()
    

    第三个存储为 3ds Max 系统目录,因此应该可以:

    >>> pymxs.runtime.GetDir(pymxs.runtime.name('autoback'))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-07-18
      • 1970-01-01
      • 2019-12-20
      • 2016-01-17
      • 2020-03-03
      • 1970-01-01
      • 2013-04-28
      相关资源
      最近更新 更多