3 #include "AL/usdmaya/fileio/translators/TranslatorBase.h"
4 #include "AL/usdmaya/fileio/translators/TranslatorContext.h"
5 #include "AL/usdmaya/fileio/translators/TranslatorTestType.h"
7 #include "maya/MStatus.h"
9 #include "pxr/base/tf/type.h"
14 namespace translators {
17 #ifndef AL_GENERATING_DOCS
23 typedef TfRefPtr<This>
RefPtr;
24 typedef TfWeakPtr<This>
Ptr;
31 MStatus
import(
const UsdPrim& prim, MObject& parent)
override;
32 MStatus
postImport(
const UsdPrim& prim)
override;
34 MStatus
tearDown(
const SdfPath& path)
override;
The base class interface of all translator plugins. The absolute minimum a translator plugin must imp...
Definition: TranslatorBase.h:53
MStatus tearDown(const SdfPath &path) override
If your plugin creates any nodes within Maya, then this method should be overridden to remove those n...
TfRefPtr< This > RefPtr
the type of a reference this type
Definition: TranslatorBase.h:58
MStatus postImport(const UsdPrim &prim) override
If your node needs to set up any relationships after import (for example, adding the node to a set...
MStatus preTearDown(UsdPrim &path) override
This method will be called prior to the tear down process taking place. This is the last chance you h...
TfWeakPtr< This > Ptr
weak pointer to this type
Definition: TranslatorBase.h:59
virtual TranslatorContextPtr context() const
returns the context currently being used to translate the USD prims. The context can be used to add r...
Definition: TranslatorBase.h:152
Base class for maya translator usd plugins. The TfType of these plugins has to be derived from the ba...
Definition: TranslatorBase.h:135
Definition: TranslatorTestPlugin.h:18
MStatus initialize() override
Override this to do a one time initialization of your translator. Primarily this is to allow you to e...