AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Global.h
1 #pragma once
2 #include "AL/usdmaya/Common.h"
3 #include "maya/MSceneMessage.h"
4 
5 namespace AL {
6 namespace usdmaya {
7 
8 //----------------------------------------------------------------------------------------------------------------------
13 //----------------------------------------------------------------------------------------------------------------------
14 class Global
15 {
16 public:
17 
19  static void onPluginLoad();
20 
22  static void onPluginUnload();
23 
24 private:
25  static MCallbackId m_preSave;
26  static MCallbackId m_postSave;
27  static MCallbackId m_preOpen;
28  static MCallbackId m_postOpen;
29  static MCallbackId m_fileNew;
30 };
31 
32 } // usdmaya
33 //----------------------------------------------------------------------------------------------------------------------
34 } // al
35 //----------------------------------------------------------------------------------------------------------------------
36 
This class wraps all of the global state/mechanisms needed to integrate USD and Maya. This mainly handles things such as onFileNew, preFileSave, etc. Hopefully the contents of the cpp file will be as minimal as possible.
Definition: Global.h:14
static void onPluginLoad()
initialise the global state
static void onPluginUnload()
uninitialise the global state