OLD | NEW |
1 //-***************************************************************************** | 1 //-***************************************************************************** |
2 // | 2 // |
3 // Copyright (c) 2009-2010, | 3 // Copyright (c) 2009-2010, |
4 // Sony Pictures Imageworks Inc. and | 4 // Sony Pictures Imageworks Inc. and |
5 // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. | 5 // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. |
6 // | 6 // |
7 // All rights reserved. | 7 // All rights reserved. |
8 // | 8 // |
9 // Redistribution and use in source and binary forms, with or without | 9 // Redistribution and use in source and binary forms, with or without |
10 // modification, are permitted provided that the following conditions are | 10 // modification, are permitted provided that the following conditions are |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // kInvalid or kLast | 97 // kInvalid or kLast |
98 bool getRotOrder(MTransformationMatrix::RotationOrder iOrder, | 98 bool getRotOrder(MTransformationMatrix::RotationOrder iOrder, |
99 unsigned int & oXAxis, unsigned int & oYAxis, unsigned int & oZAxis); | 99 unsigned int & oXAxis, unsigned int & oYAxis, unsigned int & oZAxis); |
100 | 100 |
101 // determine if a Maya Object is animated or not | 101 // determine if a Maya Object is animated or not |
102 // copy from mayapit code (MayaPit.h .cpp) | 102 // copy from mayapit code (MayaPit.h .cpp) |
103 bool isAnimated(MObject & object, bool checkParent = false); | 103 bool isAnimated(MObject & object, bool checkParent = false); |
104 | 104 |
105 // determine if a Maya Object is intermediate | 105 // determine if a Maya Object is intermediate |
106 bool isIntermediate(const MObject & object); | 106 bool isIntermediate(const MObject & object); |
| 107 |
| 108 // returns true for visible and lod invisible and not templated objects |
| 109 bool isRenderable(const MObject & object); |
| 110 |
| 111 // strip all namespaces from the node name, go from taco:foo:bar to bar |
| 112 MString stripNamespaces(const MString & iNodeName); |
| 113 |
| 114 // returns the Help string for AbcExport |
| 115 MString getHelpText(); |
| 116 |
107 } // namespace util | 117 } // namespace util |
108 | 118 |
109 struct PlugAndObjScalar | 119 struct PlugAndObjScalar |
110 { | 120 { |
111 MPlug plug; | 121 MPlug plug; |
112 MObject obj; | 122 MObject obj; |
| 123 Alembic::Abc::OObject propParent; |
113 Alembic::Abc::OScalarProperty prop; | 124 Alembic::Abc::OScalarProperty prop; |
114 }; | 125 }; |
115 | 126 |
116 struct PlugAndObjArray | 127 struct PlugAndObjArray |
117 { | 128 { |
118 MPlug plug; | 129 MPlug plug; |
119 MObject obj; | 130 MObject obj; |
120 Alembic::Abc::OArrayProperty prop; | 131 Alembic::Abc::OArrayProperty prop; |
121 }; | 132 }; |
122 | 133 |
| 134 struct JobArgs |
| 135 { |
| 136 JobArgs() |
| 137 { |
| 138 excludeInvisible = false; |
| 139 noNormals = false; |
| 140 stripNamespace = false; |
| 141 useSelectionList = false; |
| 142 worldSpace = false; |
| 143 writeVisibility = false; |
| 144 writeUVs = false; |
| 145 } |
| 146 |
| 147 bool excludeInvisible; |
| 148 bool noNormals; |
| 149 bool stripNamespace; |
| 150 bool useSelectionList; |
| 151 bool worldSpace; |
| 152 bool writeVisibility; |
| 153 bool writeUVs; |
| 154 |
| 155 std::string melPerFrameCallback; |
| 156 std::string melPostCallback; |
| 157 std::string pythonPerFrameCallback; |
| 158 std::string pythonPostCallback; |
| 159 |
| 160 std::vector< std::string > prefixFilters; |
| 161 std::set< std::string > attribs; |
| 162 util::ShapeSet dagPaths; |
| 163 }; |
| 164 |
123 #endif // _AlembicExport_MayaUtility_h_ | 165 #endif // _AlembicExport_MayaUtility_h_ |
OLD | NEW |