AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
UnloadPrim.h
1 //
2 // Copyright 2017 Animal Logic
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.//
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 #pragma once
17 #include "AL/maya/utils/Api.h"
18 #include "AL/maya/utils/MayaHelperMacros.h"
19 #include "AL/usdmaya/fileio/ImportParams.h"
20 #include "AL/usdmaya/cmds/ProxyShapeCommands.h"
21 
22 #include "maya/MPxCommand.h"
23 #include "maya/MDagModifier.h"
24 #include "maya/MObject.h"
25 #include "maya/MObjectArray.h"
26 
27 #include "pxr/pxr.h"
28 #include "pxr/usd/usd/stage.h"
29 
30 PXR_NAMESPACE_USING_DIRECTIVE
31 
32 #include <map>
33 
34 namespace AL {
35 namespace usdmaya {
36 namespace cmds {
37 
38 //----------------------------------------------------------------------------------------------------------------------
41 //----------------------------------------------------------------------------------------------------------------------
43  : public ProxyShapeCommandBase
44 {
45 public:
46  AL_MAYA_DECLARE_COMMAND();
47 private:
48  bool isUndoable() const override;
49  MStatus doIt(const MArgList& args) override;
50 };
51 
52 //----------------------------------------------------------------------------------------------------------------------
55 //----------------------------------------------------------------------------------------------------------------------
57  : public ProxyShapeCommandBase
58 {
59 public:
60  AL_MAYA_DECLARE_COMMAND();
61 private:
62  bool isUndoable() const override;
63  MStatus doIt(const MArgList& args) override;
64 };
65 
66 
67 //----------------------------------------------------------------------------------------------------------------------
68 } // cmds
69 } // usdmaya
70 } // AL
71 //----------------------------------------------------------------------------------------------------------------------
A command to activate / deactivate a prim - just a maya convenience wrapper around USD functionality...
Definition: UnloadPrim.h:56
Base class for all proxy shape commands. Sets up some common command syntax, along with a few handy u...
Definition: ProxyShapeCommands.h:45
A command to force a variant switch - just a maya convenience wrapper around USD functionality.
Definition: UnloadPrim.h:42