一、提示信息
1.PostPrompt
ip = GetCOREInterface();
ip->PushPrompt(_M("Hello"));//显示信息:
ip->PopPrompt();//隐藏信息:
2.MessageBox_OK
MessageBox(NULL, _T("Hello"), _T("Debug Message"), MB_OK); //Debuging
3.MessageBox_YesNo
switch (MessageBox(ip->GetMAXHWnd(), _M("Really Cancel"), _M("Question"), MB_ICONQUESTION | MB_YESNO)) {
case IDYES:
MessageBox(NULL, _T("Yes"), _T("Title"), MB_OK); //Debuging
break;
case IDNO:
MessageBox(NULL, _T("No"), _T("Title"), MB_OK); //Debuging
break;
}
4.maxscript listener
#include "maxscript\maxscript.h"
...
ExecuteMAXScriptScript(_T("print \"hello c++\""), 0, 0);
int Test = 5;
MCHAR Debug[256];
swprintf(Debug, 256,_T(" Hello Test = %i "), Test);
mprintf(Debug);
mflush();
二、UI
三、模型获取
四、Add Modifier
五、maxscript接口