2 #include "pxr/imaging/glf/glew.h"
3 #include "AL/maya/CommandGuiHelper.h"
4 #include "AL/maya/MenuBuilder.h"
5 #include "AL/usdmaya/Global.h"
6 #include "AL/usdmaya/StageData.h"
7 #include "AL/usdmaya/cmds/LayerCommands.h"
8 #include "AL/usdmaya/cmds/ProxyShapeCommands.h"
9 #include "AL/usdmaya/cmds/UnloadPrim.h"
10 #include "AL/usdmaya/fileio/Export.h"
11 #include "AL/usdmaya/fileio/ExportTranslator.h"
12 #include "AL/usdmaya/fileio/Import.h"
13 #include "AL/usdmaya/fileio/ImportTranslator.h"
14 #include "AL/usdmaya/nodes/Layer.h"
15 #include "AL/usdmaya/nodes/ProxyDrawOverride.h"
16 #include "AL/usdmaya/nodes/ProxyShape.h"
17 #include "AL/usdmaya/nodes/ProxyShapeUI.h"
18 #include "AL/usdmaya/nodes/Transform.h"
19 #include "AL/usdmaya/nodes/TransformationMatrix.h"
21 #include "maya/MDrawRegistry.h"
22 #include "maya/MGlobal.h"
23 #include "maya/MStatus.h"
35 template<
typename AFnPlugin>
81 template<
typename AFnPlugin>
Given some selected proxy shape node, return the layer names.
Definition: LayerCommands.h:53
#define AL_REGISTER_SHAPE_NODE(plugin, X, UI, DRAW)
Definition: Common.h:219
A method used by the generated command GUI code to retrieve a list of items from C++.
Definition: CommandGuiHelper.h:21
A custom proxy shape node that attaches itself to a USD file, and then renders it. The stage is held internally as a member variable, and it will be composed based on a change to the "filePath" attribute.
Definition: ProxyShape.h:33
#define AL_REGISTER_DRAW_OVERRIDE(plugin, X)
Definition: Common.h:261
void constructProxyShapeCommandGuis()
This function will generate all of the MEL script menus, and the option boxes, for all of the proxy s...
void constructLayerCommandGuis()
function called on startup to generate the menu & option boxes for the layer commands ...
MStatus registerPlugin(AFnPlugin &plugin)
This method is basically the main initializePlugin routine. The reason for it being a template is sim...
Definition: PluginRegister.h:36
#define AL_UNREGISTER_DATA(plugin, X)
Definition: Common.h:289
#define AL_UNREGISTER_COMMAND(plugin, X)
Definition: Common.h:273
The UI component of the proxy shape node.
Definition: ProxyShapeUI.h:15
Get / Set whether the layer is currently muted.
Definition: LayerCommands.h:145
This code is effectively copied from the pixar plugin. It's just used to pass the usd stage through t...
Definition: StageData.h:16
This class provides the draw override for the USD proxy shape node.
Definition: ProxyDrawOverride.h:20
A thin MEL command layer that just wraps the AL::usdmaya::fileio::Export process. ...
Definition: Export.h:46
ProxyShapeFindLoadable.
Definition: ProxyShapeCommands.h:76
#define AL_REGISTER_DATA(plugin, X)
Definition: Common.h:249
static void onPluginLoad()
initialise the global state
#define AL_REGISTER_TRANSFORM_NODE(plugin, NODE, MATRIX)
Definition: Common.h:234
A command to import a USD file into Maya (supporting A20 specific requirements)
Definition: Import.h:44
Imports a proxy shape into maya.
Definition: ProxyShapeCommands.h:56
#define AL_UNREGISTER_NODE(plugin, X)
Definition: Common.h:281
ProxyShapePrintRefCountState.
Definition: ProxyShapeCommands.h:161
MStatus unregisterPlugin(AFnPlugin &plugin)
This method is basically the main uninitializePlugin routine. The reason for it being a template is s...
Definition: PluginRegister.h:82
static void onPluginUnload()
uninitialise the global state
#define AL_REGISTER_DEPEND_NODE(plugin, X)
Definition: Common.h:206
#define AL_REGISTER_COMMAND(plugin, X)
Definition: Common.h:185
Save the specified layer.
Definition: LayerCommands.h:93
The layer node stores a reference to an SdfLayer.
Definition: Layer.h:20
Given some selected proxy shape node, create a new sub layer for the current edit target...
Definition: LayerCommands.h:67
A command to force a variant switch.
Definition: UnloadPrim.h:22
#define AL_UNREGISTER_DRAW_OVERRIDE(plugin, X)
Definition: Common.h:305
ProxyShapeImportPrimPathAsMaya A command that will import a portion of a proxyNode as Maya geometry/t...
Definition: ProxyShapeCommands.h:128
#define AL_UNREGISTER_TRANSLATOR(plugin, X)
Definition: Common.h:297
Get / Set the current edit target for the stage.
Definition: LayerCommands.h:121
#define AL_REGISTER_TRANSLATOR(plugin, X)
Definition: Common.h:197