[Maya C++] Set up the Maya Plugin Wizard

Maya 2008 & VS 2008: http://www.rayfile.com/files/958fa1c7-ed28-11dd-9208-0014221b798a/

Maya 2009 & VS 2008: http://www.rayfile.com/files/5fa3fa2e-ed28-11dd-afab-0019d11a795f/

Follow the readme file in those archived files copy needed files and folders to destination.

For test only:

Create a plug-in project with default settings. Open the C++ file, add following line at the beginning of the file:

#include<maya/MGlobal.h>

Change the following line:

setResult("helloWorld command executed!");

to:

MGlobal::dispalyInfo("Hello World/n");

Save file, Build.

Next, open maya, from Window->Settings & Preferences -> Plug-in Manager, load the new plug-in created.

Then in the script editor, type in the plug-in name and execute to see the result.

 

 

The rectified version: http://www.rayfile.com/files/59a4912b-eed2-11dd-b2c4-0014221b798a/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章