2 #include "AL/usdmaya/fileio/ImportParams.h"
4 #include "maya/MPxCommand.h"
5 #include "maya/MDagModifier.h"
6 #include "maya/MObject.h"
7 #include "maya/MObjectArray.h"
9 #include "pxr/usd/usd/stage.h"
59 MDagModifier m_modifier;
60 MDagModifier m_modifier2;
61 MObjectArray m_parentTransforms;
64 AL_MAYA_DECLARE_COMMAND();
66 bool isUndoable()
const override;
67 MStatus undoIt()
override;
68 MStatus redoIt()
override;
69 MStatus doIt(
const MArgList& args)
override;
80 AL_MAYA_DECLARE_COMMAND();
82 bool isUndoable()
const override;
83 MStatus doIt(
const MArgList& args)
override;
94 MDagModifier m_modifier;
95 MDagModifier m_modifier2;
97 AL_MAYA_DECLARE_COMMAND();
99 bool isUndoable()
const override;
100 MStatus undoIt()
override;
101 MStatus redoIt()
override;
102 MStatus doIt(
const MArgList& args)
override;
113 MDagModifier m_modifier;
115 AL_MAYA_DECLARE_COMMAND();
117 bool isUndoable()
const override;
118 MStatus undoIt()
override;
119 MStatus redoIt()
override;
120 MStatus doIt(
const MArgList& args)
override;
131 MDagModifier m_modifier;
133 MDagPath m_transformPath;
135 MObjectArray m_nodesToKill;
138 MObject makePrimTansforms(
142 MObject makeUsdTransformChain(
143 std::map<std::string, MObject>& mapped,
144 const UsdPrim& usdPrim,
145 const MPlug& outStage,
146 const MPlug& outTime,
147 const MObject& parentXForm);
149 AL_MAYA_DECLARE_COMMAND();
151 bool isUndoable()
const override;
152 MStatus undoIt()
override;
153 MStatus redoIt()
override;
154 MStatus doIt(
const MArgList& args)
override;
165 AL_MAYA_DECLARE_COMMAND();
167 bool isUndoable()
const override;
168 MStatus doIt(
const MArgList& args)
override;
MDagPath getShapePath(const MArgDatabase &args)
find the proxy shape node
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
parameters for the importer
Definition: ImportParams.h:18
void constructProxyShapeCommandGuis()
This function will generate all of the MEL script menus, and the option boxes, for all of the proxy s...
MArgDatabase makeDatabase(const MArgList &args)
construct the arg data base from the arguments maya passed to the MPxCommands doIt method...
ProxyShapeFindLoadable.
Definition: ProxyShapeCommands.h:76
static MSyntax setUpCommonSyntax()
sets up some core/common command params - enables specification of selectin list as a command argumen...
Imports a proxy shape into maya.
Definition: ProxyShapeCommands.h:56
ProxyShapePrintRefCountState.
Definition: ProxyShapeCommands.h:161
UsdStageRefPtr getShapeNodeStage(const MArgDatabase &args)
get the USD stage
Base class for all proxy shape commands. Sets up some common command syntax, along with a few handy u...
Definition: ProxyShapeCommands.h:22
ProxyShapeImportPrimPathAsMaya A command that will import a portion of a proxyNode as Maya geometry/t...
Definition: ProxyShapeCommands.h:128
nodes::ProxyShape * getShapeNode(const MArgDatabase &args)
find the proxy shape nodeata base