AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ImportParams.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 "maya/MDagPath.h"
18 #include "maya/MString.h"
19 #include "maya/MStringArray.h"
20 
21 #include "pxr/pxr.h"
22 #include "pxr/usd/sdf/layer.h"
23 #include "AL/usd/utils/ForwardDeclares.h"
24 
25 PXR_NAMESPACE_USING_DIRECTIVE
26 
27 #ifndef USE_AL_DEFAULT
28  #define USE_AL_DEFAULT 0
29 #endif
30 
31 
32 namespace AL {
33 namespace usdmaya {
34 namespace fileio {
35 
36 //----------------------------------------------------------------------------------------------------------------------
39 //----------------------------------------------------------------------------------------------------------------------
41 {
42  MDagPath m_parentPath;
43  MString m_fileName;
44  bool m_meshes = true;
45  bool m_animations = true;
46  bool m_nurbsCurves = true;
47  bool m_dynamicAttributes = true;
48  bool m_stageUnloaded = true;
49  bool m_forceDefaultRead = false;
50  SdfLayerRefPtr m_rootLayer;
51  SdfLayerRefPtr m_sessionLayer;
52 };
53 
54 //----------------------------------------------------------------------------------------------------------------------
55 } // fileio
56 } // usdmaya
57 } // AL
58 //----------------------------------------------------------------------------------------------------------------------
MString m_fileName
the name of the file to import
Definition: ImportParams.h:43
bool m_nurbsCurves
true to import nurbs curves, false to ignore nurbs curves on import
Definition: ImportParams.h:46
parameters for the importer
Definition: ImportParams.h:40
SdfLayerRefPtr m_rootLayer
Definition: ImportParams.h:50
bool m_forceDefaultRead
true to explicit read default values
Definition: ImportParams.h:49
bool m_meshes
true to import mesh geometry, false to ignore mesh geometry on import
Definition: ImportParams.h:44
MDagPath m_parentPath
the parent transform under which the USD file will be imported
Definition: ImportParams.h:42
SdfLayerRefPtr m_sessionLayer
Definition: ImportParams.h:51
bool m_dynamicAttributes
if true, attributes in the USD file marked as 'custom' will be imported as dynamic attributes...
Definition: ImportParams.h:47
bool m_stageUnloaded
if true, the USD stage will be opened with the UsdStage::LoadNone flag. If false the stage will be lo...
Definition: ImportParams.h:48
bool m_animations
true to import animation data, false to ignore animation data import
Definition: ImportParams.h:45