1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
//
// Copyright (C) toto
//
// File: myCmdCmd.cpp
//
// MEL Command: myCmd
//
// Author: Maya Plug-in Wizard 2.0
//
// Includes everything needed to register a simple MEL command with Maya.
//
#include <maya/MSimple.h>
#include <maya/MFnPlugin.h>
#include <maya/MGlobal.h>
#include<maya/MLibrary.h>
// required to link the libraries under VisualC++ / Win32
#ifdef WIN32
#pragma comment(lib,"Foundation.lib")
#pragma comment(lib,"OpenMaya.lib")
#pragma comment(lib,"OpenMayaAnim.lib")
#pragma comment(lib,"OpenMayaUI.lib")
#pragma comment(lib,"OpenGL32.lib")
#endif
// under WIN32 we have to 'export' these functions so that they are visible
// inside the dll. If maya can't see the functions, it can't load the plugin!
#ifdef WIN32
#define MLL_EXPORT __declspec(dllexport)
#else
#define MLL_EXPORT
#endif
//DeclareSimpleCommand( myCmd, "toto", "8.5");
int main(int argc,char** argv)
{
MGlobal::displayInfo( "test hello" );
return 0;
} |
Partager