The wizard is located at [ MayaInstallDir ] \ devkit \ pluginwizard \ MayaPluginWizard2.0.
Copy the following files located in the _MayaPluginWizard directory to [ VisualStudioInstallDir ] \ Microsoft Visual Studio 10.0 \ VC \ vcprojects
- MayaPluginWizard.vsdir
- MayaPluginWizard.vsz
- MayaPluginWizard.ico
Copy the MayaPluginWizard directory to the vcwizards folder. Restart Visual Studio and Maya Plugin Wizard should be available in the list of VC++ projects.
There are two things that you might want to check.
1. The version of VsWizard Engine. For Visual Studio 2010 it is 10.0. Look for this line wizard=VsWizard.VsWizardEngine.10.0 in MayaPluginWizard.vsz file located in _MayaPluginWizard directory. Change the version number to the visual studio version you are using.
2. Change “default.vcproj” to “default.vcxproj” in default.js located at Scripts folder. Don’t use this if visual studio version is 2005 or older[/box]
IF you are interested in setting it up manually, below are the steps:
STEP BY STEP PROCESS:
Below is the step by step procedure to manually setup the development environment using visual studio 2010. In project property settings:
Configuration
Configuration Properties -> Target Extension -> .mll
Configuration Type -> Dynamic Library (.dll)
C/C++
Preprocessor -> Preprocessor Definitions -> NT_PLUGIN
General -> Additional Include Directories -> [MayaInstallDir]\Include
Linker
General -> Additional Library Directories -> [MayaInstallDir]\lib
Input -> Additional Dependencies -> (You need to append Maya lib based on your plug-in)
- Foundation.lib;
- OpenMaya.lib;
- OpenMayaUI.lib;
- OpenMayaAnim.lib;
- OpenMayaFX.lib;
- OpenMayaRender.lib;
- Image.lib;
- opengl32.lib
그냥 그 configuration을 날려버리고 새로 x64 플랫폼을 위한 configuration을 만들면 그 때 win32로 부터 설정을 복사해올 수 있다.
그러면 끝.
추가사항
win32의 경우 additional option 란에 다음과 같은 추가 옵션이 있었다.
c/c++ 의 경우
/Gm /GR /GS /EHsc /Zi /I "." /D "WIN32" /D "_DEBUG" /RTC1 /c
Linker 의 경우
/subsystem:windows /dll /incremental:yes /debug /export:initializePlugin /export:uninitializePlugin
'그래픽스 관련' 카테고리의 다른 글
[Maya] 환경변수 설정 및 플러그인 배포하기 (0) | 2011.06.27 |
---|---|
[Maya] C++ API 중 MMatrix, xform -matrix의 옵션 (0) | 2011.06.22 |
(OpenGL) glLight 함수의 GL_POSITION에 전달하는 값에 대해 (0) | 2009.12.10 |
(OpenGL) Get Matrix (0) | 2009.12.06 |
기초상식. 1080p (0) | 2009.10.30 |