关键词:
【中文标题】pymxs 替代已弃用的 MaxPlus 实用程序函数【英文标题】:pymxs alternatives to the deprecated MaxPlus utility functions 【发布时间】: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()
任何帮助我指出正确的方向,将不胜感激。
【问题讨论】:
【参考方案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'))
【讨论】:
BitmapDrawable 已弃用的替代方案
】BitmapDrawable已弃用的替代方案【英文标题】:BitmapDrawabledeprecatedalternative【发布时间】:2012-04-1606:11:56【问题描述】:我有以下代码可以将可绘制对象旋转一定的度数。publicDrawablerotateDrawable(floatangle,Contextcontext)BitmaparrowBitmap=Bitm... 查看详情
替代已弃用的 AudioManager.isWiredHeadsetOn?
】替代已弃用的AudioManager.isWiredHeadsetOn?【英文标题】:AlternativetothedeprecatedAudioManager.isWiredHeadsetOn?【发布时间】:2013-01-0207:43:44【问题描述】:方法AudioManager.isWiredHeadsetOn()从api级别14被弃用,我们现在如何检测是否连接了有线... 查看详情
已弃用的 AudioManger.setStreamMute 的替代方案?
】已弃用的AudioManger.setStreamMute的替代方案?【英文标题】:AlternativefordeprecatedAudioManger.setStreamMute?【发布时间】:2016-01-0812:48:11【问题描述】:AudioManger.setStreamMute现在被api23弃用,最好使用AudioManager.adjustStreamVolume和AudioManager.ADJU... 查看详情
已弃用的 NSURLConnection 方法,有替代方法吗?
】已弃用的NSURLConnection方法,有替代方法吗?【英文标题】:DeprecatedNSURLConnectionMethods,isthereanalternative?【发布时间】:2012-02-2814:12:26【问题描述】:我正在设置一个NSURLConnection来访问远程服务器:NSURL*url=[[NSURLalloc]initWithString:proj... 查看详情
Android:替代已弃用的 Context.MODE_WORLD_READABLE?
】Android:替代已弃用的Context.MODE_WORLD_READABLE?【英文标题】:Android:AlternativetothedeprecatedContext.MODE_WORLD_READABLE?【发布时间】:2012-12-0103:51:09【问题描述】:Fromhere我知道一种写入文件并可供其他应用程序和其他意图访问的方法,... 查看详情
寻找现在已弃用的 retryWhen 的替代方案
】寻找现在已弃用的retryWhen的替代方案【英文标题】:LookingforanalternativeofretryWhenwhichisnowDeprecated【发布时间】:2020-10-0616:34:43【问题描述】:我遇到了WebClient和reactor-extra的问题。确实,我有以下方法:publicEmployeegetEmployee(Stringemp... 查看详情
channel 或 mutablesharedflow ,哪个是已弃用的 localbroadcastmanager 的更好替代品
...l或mutablesharedflow,哪个是已弃用的localbroadcastmanager的更好替代品【英文标题】:channelormutablesharedflow,whichoneisabetterreplacementfordeprecatedlocalbroadcastmanager【发布时间】:2021-04-0321:15:20【问题描述】:过去,我在聊天和出租车应用程序... 查看详情
图像中已弃用的 Notification 类的替代方法是啥?
】图像中已弃用的Notification类的替代方法是啥?【英文标题】:WhatisthealternativeforthedeprecatedNotificationclassintheimage?图像中已弃用的Notification类的替代方法是什么?【发布时间】:2014-02-1811:14:20【问题描述】:我打算在android设备的... 查看详情
已弃用的 google plus api 的替代解决方案是啥?
】已弃用的googleplusapi的替代解决方案是啥?【英文标题】:Whatisthealternativesolutionofdeprecatedgoogleplusapi?已弃用的googleplusapi的替代解决方案是什么?【发布时间】:2019-06-2315:43:08【问题描述】:Google宣布在3月7日弃用所有googleplusapi... 查看详情
iOS 12.0 替代使用已弃用的 archiveRootObject:toFile:
】iOS12.0替代使用已弃用的archiveRootObject:toFile:【英文标题】:iOS12.0AlternativetoUsingDeprecatedarchiveRootObject:toFile:【发布时间】:2019-05-0322:47:12【问题描述】:在iOS12中,archiveRootObject:toFile:已被弃用。任何人都可以提出一种简化的替代... 查看详情
已弃用的 Hibernate.createClob(Reader reader, int length) 的替代方法是啥
】已弃用的Hibernate.createClob(Readerreader,intlength)的替代方法是啥【英文标题】:WhatisthealternatefordeprecatedHibernate.createClob(Readerreader,intlength)已弃用的Hibernate.createClob(Readerreader,intlength)的替代方法是什么【发布时间】:2012-02-1601:23:11【 查看详情
如何为已弃用的英特尔 IPP API 找到替代 API?
】如何为已弃用的英特尔IPPAPI找到替代API?【英文标题】:HowtofindalternativeAPIsfordeprecatedIntelIPPAPIs?【发布时间】:2014-11-0410:11:49【问题描述】:我正在与IntelIntegratedPerformancePrimitives(IntelIPP8.2)合作。我正在尝试使用来自UtilityFunction... 查看详情
[FFmpeg]啥是已弃用的 avpicture_alloc、avpicture::data 的替代品
】[FFmpeg]啥是已弃用的avpicture_alloc、avpicture::data的替代品【英文标题】:[FFmpeg]whatisreplacementsofavpicture_alloc,avpicture::datawhichweredeprecated[FFmpeg]什么是已弃用的avpicture_alloc、avpicture::data的替代品【发布时间】:2016-04-1204:47:35【问题描... 查看详情
替代已弃用的 setup_environ() 一次性 django 脚本?
】替代已弃用的setup_environ()一次性django脚本?【英文标题】:Alternativetothedeprecatedsetup_environ()forone-offdjangoscripts?【发布时间】:2013-02-0912:48:39【问题描述】:不久前我使用setup_environ()编写了一个一次性的python脚本,该脚本可以从... 查看详情
替代已弃用的 setup_environ() 一次性 django 脚本?
】替代已弃用的setup_environ()一次性django脚本?【英文标题】:Alternativetothedeprecatedsetup_environ()forone-offdjangoscripts?【发布时间】:2013-02-0912:48:39【问题描述】:不久前我使用setup_environ()编写了一个一次性的python脚本,该脚本可以从... 查看详情
OAuth2FeignRequestInterceptor 的替代方案,依赖于已弃用的类
】OAuth2FeignRequestInterceptor的替代方案,依赖于已弃用的类【英文标题】:AlternativeforOAuth2FeignRequestInterceptorthatdependsonadeprecatedclass【发布时间】:2020-05-0511:07:44【问题描述】:免责声明:老实说,我尝试在google/github上搜索,扫描了... 查看详情
macOS 10.8 (Mountain Lion) 之后已弃用的资源 'CurResfile'、'UseResFile' 等的替代 API
】macOS10.8(MountainLion)之后已弃用的资源\\\'CurResfile\\\'、\\\'UseResFile\\\'等的替代API【英文标题】:AlternativeAPIsforresources\'CurResfile\',\'UseResFile\',etc.whichhavebeendeprecatedaftermacOS10.8(MountainLion)macOS10.8(MountainLion)之后 查看详情
Alamofire 已弃用的代码
...我将其追溯到Alamofire中的以下语句。我没有看到任何关于替代品的提及。@available(*,deprecated=3.4.0)publicstaticfuncerrorWithCode( 查看详情