| MLibrary () | |
| ~MLibrary () | |
| initialize (char* applicationName, bool viewLicense = false) | |
| initialize (bool wantScriptOutput, char* applicationName, bool viewLicense = false) | |
| cleanup ( int exitStatus = 0 ) |
main(int argc, char **argv)
{
MStatus status;
status = MLibrary::initialize (argv[0], true);
if ( !status ) {
status.perror("MLibrary::initialize");
return (1);
}
// Maya API code goes here
MLibrary::cleanup();
return (0);
}
If the call to cleanup is omitted, you will get errors when the program
exits as the static destructors in the Maya libraries are run.
| Autodesk® Maya® 8.0 © 1997-2006 Autodesk, Inc. All rights reserved. | doc++ Copyright |