AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ExportParams.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/usdmaya/ForwardDeclares.h>
18 #include "maya/MSelectionList.h"
19 #include "maya/MString.h"
20 #include "AL/usd/utils/ForwardDeclares.h"
21 #include "pxr/usd/usd/timeCode.h"
22 
23 PXR_NAMESPACE_USING_DIRECTIVE
24 
25 namespace AL {
26 namespace usdmaya {
27 namespace fileio {
28 
29 //----------------------------------------------------------------------------------------------------------------------
34 //----------------------------------------------------------------------------------------------------------------------
36 {
37  MSelectionList m_nodes;
38  MString m_fileName;
39  double m_minFrame=0.0;
40  double m_maxFrame=1.0;
41  uint32_t m_subSamples = 1;
42  bool m_selected = false;
43  bool m_meshes = true;
44  bool m_meshPoints = true;
45  bool m_meshConnects = true;
46  bool m_meshNormals = true;
47  bool m_meshVertexCreases = true;
48  bool m_meshEdgeCreases = true;
49  bool m_meshUvs = true;
50  bool m_meshColours = true;
51  bool m_meshHoles = true;
52  bool m_meshUV = false;
53  bool m_nurbsCurves = true;
54  bool m_dynamicAttributes = true;
55  bool m_duplicateInstances = true;
56  bool m_mergeTransforms = true;
57  bool m_animation = false;
58  bool m_useTimelineRange = false;
59  bool m_filterSample = false;
64  UsdTimeCode m_timeCode = UsdTimeCode::Default();
65 };
66 
67 //----------------------------------------------------------------------------------------------------------------------
68 } // fileio
69 } // usdmaya
70 } // AL
71 //----------------------------------------------------------------------------------------------------------------------
double m_maxFrame
the end frame of the animation export
Definition: ExportParams.h:40
uint32_t m_subSamples
the number of subsample steps to export
Definition: ExportParams.h:41
bool m_meshVertexCreases
if true vertex creases will be exported
Definition: ExportParams.h:47
parameters for the exporter. These parameters are constructed by any command or file translator that ...
Definition: ExportParams.h:35
bool m_nurbsCurves
if true export nurbs curves
Definition: ExportParams.h:53
bool m_meshEdgeCreases
if true edge creases will be exported
Definition: ExportParams.h:48
bool m_filterSample
if true, duplicate sample of attribute will be filtered out
Definition: ExportParams.h:59
bool m_meshColours
if true colour sets will be exported
Definition: ExportParams.h:50
bool m_selected
are we exporting selected objects (true) or all objects (false)
Definition: ExportParams.h:42
bool m_duplicateInstances
if true, instances will be exported as duplicates. As of 23/01/17, nothing will be exported if set to...
Definition: ExportParams.h:55
MString m_fileName
the filename of the file we will be exporting
Definition: ExportParams.h:38
bool m_meshHoles
if true polygonal holes will be exported
Definition: ExportParams.h:51
bool m_dynamicAttributes
if true export any dynamic attributes found on the nodes we are exporting
Definition: ExportParams.h:54
double m_minFrame
the start frame for the animation export
Definition: ExportParams.h:39
AnimationTranslator * m_animTranslator
the animation translator to help exporting the animation data
Definition: ExportParams.h:61
bool m_mergeTransforms
if true, shapes will be merged into their parent transforms in the exported data. If false...
Definition: ExportParams.h:56
bool m_meshNormals
if true normal vectors will be exported
Definition: ExportParams.h:46
bool m_meshPoints
if true mesh vertices will be exported
Definition: ExportParams.h:44
int m_exportAtWhichTime
controls where the data will be written to: 0 = default time, 1 = earliest time, 2 = current time ...
Definition: ExportParams.h:63
bool m_meshUV
if true, export a scene hierarchy with all empty prims marked "over", only meshes UV will be filled i...
Definition: ExportParams.h:52
bool m_useTimelineRange
if true, then the export uses Maya's timeline range.
Definition: ExportParams.h:58
MSelectionList m_nodes
the selected node to be exported
Definition: ExportParams.h:37
bool m_extensiveAnimationCheck
if true, extensive animation check will be performed on transform nodes.
Definition: ExportParams.h:62
bool m_meshConnects
if true face connects and counts will be exported
Definition: ExportParams.h:45
bool m_meshUvs
if true UV coordinates will be exported
Definition: ExportParams.h:49
bool m_animation
if true, animation will be exported.
Definition: ExportParams.h:57
int m_compactionLevel
by default apply the strongest level of data compaction
Definition: ExportParams.h:60
A utility class to help with exporting animated plugs from maya.
Definition: AnimationTranslator.h:76
bool m_meshes
if true, export meshes
Definition: ExportParams.h:43