20 #include "AL/usdmaya/fileio/ImportParams.h"
21 #include "AL/usdmaya/nodes/ProxyShape.h"
25 #include "maya/MPxCommand.h"
26 #include "maya/MDagModifier.h"
27 #include "maya/MObject.h"
28 #include "maya/MObjectArray.h"
29 #include "maya/MSelectionList.h"
32 #include "pxr/usd/usd/stage.h"
34 PXR_NAMESPACE_USING_DIRECTIVE
82 MDagModifier m_modifier;
83 MDagModifier m_modifier2;
84 MObjectArray m_parentTransforms;
87 bool m_createdParent =
true;
89 AL_MAYA_DECLARE_COMMAND();
91 bool isUndoable()
const override;
92 MStatus undoIt()
override;
93 MStatus redoIt()
override;
94 MStatus doIt(
const MArgList& args)
override;
105 AL_MAYA_DECLARE_COMMAND();
107 bool isUndoable()
const override;
108 MStatus doIt(
const MArgList& args)
override;
119 MDagModifier m_modifier;
120 MDagModifier m_modifier2;
122 AL_MAYA_DECLARE_COMMAND();
124 bool isUndoable()
const override;
125 MStatus undoIt()
override;
126 MStatus redoIt()
override;
127 MStatus doIt(
const MArgList& args)
override;
138 MDagModifier m_modifier;
140 AL_MAYA_DECLARE_COMMAND();
142 bool isUndoable()
const override;
143 MStatus undoIt()
override;
144 MStatus redoIt()
override;
145 MStatus doIt(
const MArgList& args)
override;
156 MDagModifier m_modifier;
158 MDagPath m_transformPath;
160 MObjectArray m_nodesToKill;
163 MObject makePrimTansforms(
167 MObject makeUsdTransformChain(
168 std::map<std::string, MObject>& mapped,
169 const UsdPrim& usdPrim,
170 const MPlug& outStage,
171 const MPlug& outTime,
172 const MObject& parentXForm);
174 AL_MAYA_DECLARE_COMMAND();
176 bool isUndoable()
const override;
177 MStatus undoIt()
override;
178 MStatus redoIt()
override;
179 MStatus doIt(
const MArgList& args)
override;
190 AL_MAYA_DECLARE_COMMAND();
192 bool isUndoable()
const override;
193 MStatus doIt(
const MArgList& args)
override;
203 SdfPath m_resyncPrimPath;
204 UsdPrim m_resyncPrim;
206 bool m_runPrePrimChanged;
207 bool m_runPostPrimChanged;
209 AL_MAYA_DECLARE_COMMAND();
211 bool isUndoable()
const override;
212 MStatus doIt(
const MArgList& args)
override;
213 MStatus redoIt()
override;
227 AL_MAYA_DECLARE_COMMAND();
229 bool isUndoable()
const override;
230 MStatus doIt(
const MArgList& args)
override;
231 MStatus undoIt()
override;
232 MStatus redoIt()
override;
233 MStatus _redoIt(
bool isInternal);
246 AL_MAYA_DECLARE_COMMAND();
248 bool isUndoable()
const override;
249 MStatus doIt(
const MArgList& args)
override;
250 MStatus undoIt()
override;
251 MStatus redoIt()
override;
265 AL_MAYA_DECLARE_COMMAND();
267 bool isUndoable()
const override;
268 MStatus doIt(
const MArgList& args)
override;
269 MStatus undoIt()
override;
270 MStatus redoIt()
override;
284 SdfPathVector m_importPaths;
285 SdfPathVector m_teardownPaths;
288 AL_MAYA_DECLARE_COMMAND();
290 bool isUndoable()
const override;
291 MStatus doIt(
const MArgList& args)
override;
292 MStatus redoIt()
override;
MDagPath getShapePath(const MArgDatabase &args)
find the proxy shape node
ProxyShapeResync.
Definition: ProxyShapeCommands.h:200
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:244
parameters for the importer
Definition: ImportParams.h:40
ProxyShapeSelect.
Definition: ProxyShapeCommands.h:240
ProxyShapeSelect.
Definition: ProxyShapeCommands.h:220
Transient aggregate of values that aims to direct the Translation of Prims. Typically an object of th...
Definition: TranslatorContext.h:54
TranslatePrim.
Definition: ProxyShapeCommands.h:278
AL_USDMAYA_PUBLIC void constructProxyShapeCommandGuis()
This function will generate all of the MEL script menus, and the option boxes, for all of the proxy s...
InternalProxyShapeSelect.
Definition: ProxyShapeCommands.h:258
MArgDatabase makeDatabase(const MArgList &args)
construct the arg data base from the arguments maya passed to the MPxCommands doIt method...
ProxyShapeFindLoadable.
Definition: ProxyShapeCommands.h:101
Used as a way to construct a simple selection list that allows for selection highlighting without cre...
Definition: ProxyShape.h:124
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:79
ProxyShapePrintRefCountState.
Definition: ProxyShapeCommands.h:186
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:45
ProxyShapeImportPrimPathAsMaya A command that will import a portion of a proxyNode as Maya geometry/t...
Definition: ProxyShapeCommands.h:153
A helper class to store the state that is modified during a change to the current selection within a ...
Definition: ProxyShape.h:87
nodes::ProxyShape * getShapeNode(const MArgDatabase &args)
find the proxy shape nodeata base
AL_USDMAYA_PUBLIC void constructPickModeCommandGuis()
Construct menu and commands for setting pick modes.