20 #include "AL/maya/utils/FileTranslatorBase.h"
21 #include "AL/usdmaya/fileio/ImportParams.h"
31 AL_MAYA_TRANSLATOR_BEGIN(ImportTranslator,
"AL usdmaya import",
true,
false,
"*.usda",
"*.usdc;*.usda;*.usd;*.usdt");
44 static constexpr
const char*
const kParentPath =
"Parent Path";
45 static constexpr
const char*
const kMeshes =
"Import Meshes";
46 static constexpr
const char*
const kNurbsCurves =
"Import Curves";
47 static constexpr
const char*
const kAnimations =
"Import Animations";
48 static constexpr
const char*
const kDynamicAttributes =
"Import Dynamic Attributes";
49 static constexpr
const char*
const kStageUnload =
"Load None";
50 static constexpr
const char*
const kReadDefaultValues =
"Read Default Values";
55 static MStatus specifyOptions(AL::maya::utils::FileTranslatorOptions& options)
57 if(!options.addFrame(
"AL USD Importer Options"))
return MS::kFailure;
58 if(!options.addString(kParentPath,
""))
return MS::kFailure;
59 if(!options.addBool(kMeshes,
true))
return MS::kFailure;
60 if(!options.addBool(kNurbsCurves,
true))
return MS::kFailure;
61 if(!options.addBool(kAnimations,
true))
return MS::kFailure;
62 if(!options.addBool(kDynamicAttributes,
true))
return MS::kFailure;
63 if(!options.addBool(kStageUnload,
false))
return MS::kFailure;
64 if(!options.addBool(kReadDefaultValues,
true))
return MS::kFailure;
70 MStatus reader(
const MFileObject& file,
const AL::maya::utils::OptionsParser& options, FileAccessMode mode)
override;
71 ImporterParams m_params;
73 AL_MAYA_TRANSLATOR_END();
AL_MAYA_TRANSLATOR_BEGIN(ImportTranslator,"AL usdmaya import", true, false,"*.usda","*.usdc;*.usda;*.usd;*.usdt")
A USD importer into Maya (partially supporting Animal Logic specific things)