mayapluginwizard搞定了,但是每次新建工程,都要复制maya的安装目录,复制到custom location里,太麻烦了。
先打开Microsoft Visual Studio 9.0/VC/VCWizards/MayaPluginWizard/HTML/1033/default.htm
找到
<SYMBOL NAME='MAYA_LOCATION' TYPE="text" VALUE='c:/Program Files/Autodesk/Maya2011'></SYMBOL>
修改为maya安装目录
然后再打开Microsoft Visual Studio 9.0/VC/VCWizards/MayaPluginWizard/Scripts/1033/default.js
找到
var strMayaLocation = wizard.FindSymbol('MAYA_LOCATION');
修改为 var strMayaLocation = “maya的安装目录”;
例如:var strMayaLocation = 'D://Program Files//Autodesk//Maya2011';
这样每次就不用每次复制了。方便多了!