3DS Max 插件向导 Visual Studio 2017

3DS Max Plugin Wizard with Visual Studio 2017

我正在尝试使用我的 Visual Studio 2017 设置 3DS max 插件向导。 Ofc 我遵循了所有需要的说明,我设置了新的绝对路径目录,我让所有文件都可以写入而不是只读。

我可以在我的 visual studio 中看到创建一个 3ds max 插件项目,但是当我单击创建项目时,它什么也没做,然后再次弹出来创建一个项目。

有人知道可能的解决方案吗? 是不是3ds max SDK不兼容2017版本?

使用 3ds Max 2019 和 Visual Studio Community 2017,这些步骤对我有用:

  • 从文件夹 <maxsdk>\howtodsmaxPluginWizard,在文本编辑器中打开 3dsmaxPluginWizard.vsz

  • 将以 Wizard= 开头的行更改为 Wizard=VsWizard.VsWizardEngine.15.0。这可能是您遗漏的步骤。

  • 更改以 Param="ABSOLUTE_PATH = 开头的行以提供文件夹的完整绝对路径 <maxsdk>\howtodsmaxPluginWizard

  • 3dsmaxPluginWizard.ico3dsmaxPluginWizard.ico3dsmaxPluginWizard.vsz复制到C:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\VC\vcprojects

  • Platform Toolset:创建项目后,确保至少将 3ds Max 的设置 Configuration Properties->General->Platform Toolset 更改为 Visual Studio 2015 (v140) 2018 和 3ds Max 2019。每个 3ds Max 版本 are listed on the help page here 所需的 Visual Studio 版本。为防止将来出现此问题,您可以通过将以下内容添加到 \maxsdk\howtodsmaxPluginWizard\Templates33\root.vcxproj_template 来更新模板,并将 v140 替换为帮助页面上显示的适当值:

     <PropertyGroup Label="Configuration" >
      <PlatformToolset>v140</PlatformToolset>
     </PropertyGroup>
    
  • 就是这样!在Visual Studio2017selectFile->New->Project...,然后(1)select3ds Max Plugin Wizard,输入一个Name,Location和Solution name,点击OK,然后(2)for插件类型 select 任何其他,我已经测试过实用程序正在运行,然后 (3) 对于插件详细信息,请务必输入插件类别和插件描述,可以是任何文本,然后 (4) 对于插件详细信息设置根文件夹的路径以及您希望插件所在的位置和安装根文件夹。项目应该被创建并且工作正常。不过,某些插件类型可能存在错误。

可能的错误:

  • 创建项目时,如果您收到类似 Unable to read the project fileName cannot begin with the '3' character 的错误弹出窗口,请重试并填写 Project Details 页面中的所有字段带有读取绝对路径的向导,例如 C:\Program Files\Autodeskds Max 2018 SDK\maxsdk 和 'C:\Program Files\Autodeskds Max 2018'.

  • 构建时,如果收到类似 The imported project "somepathdsmax.general.project.settings.props" was not found 的错误,请在文本编辑器中打开 .vcxproj 文件并修复 <MaxSDK> 和 [=31= 中包含的值].它应该是包含 include、lib、samples 等子文件夹的 maxsdk 位置。

  • 构建时,如果您收到类似 LINK : fatal error LNK1104: cannot open file 'bmm.lib' 的错误,请确保您是在发布模式下构建。除非您拥有 Autodesk Developer Network (ADN) 提供的 3ds Max Debug Build,否则您将只能在 maxsdk\lib\x64.

  • 下获得发布库