AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RendererCommands.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 
18 #include "../Api.h"
19 
20 #include "AL/usdmaya/ForwardDeclares.h"
21 #include "AL/maya/utils/Api.h"
22 #include "AL/maya/utils/MayaHelperMacros.h"
23 #include "maya/MDGModifier.h"
24 #include "maya/MObject.h"
25 #include "maya/MPxCommand.h"
26 
27 #include "pxr/pxr.h"
28 #include "pxr/usd/usd/stage.h"
29 #include <functional>
30 
31 namespace AL {
32 namespace usdmaya {
33 namespace cmds {
34 
35 //----------------------------------------------------------------------------------------------------------------------
38 //----------------------------------------------------------------------------------------------------------------------
40  : public MPxCommand
41 {
42  MArgDatabase makeDatabase(const MArgList& args);
43 public:
44  AL_MAYA_DECLARE_COMMAND();
45 private:
46  bool isUndoable() const override;
47  MStatus doIt(const MArgList& args) override;
48 };
49 
50 
53 AL_USDMAYA_PUBLIC
55 
56 //----------------------------------------------------------------------------------------------------------------------
57 } // cmds
58 } // usdmaya
59 } // AL
60 //----------------------------------------------------------------------------------------------------------------------
Get / Set renderer plugin settings.
Definition: RendererCommands.h:39
AL_USDMAYA_PUBLIC void constructRendererCommandGuis()
function called on startup to generate the menu & option boxes for the layer commands ...