Provides functionality to register and lookup USD writer plugins for 3dsMax nodes.
More...
|
static MaxUSDAPI void | Register (const std::string &key, WriterFactoryFn fn, bool fromPython=false) |
| Register a new prim writer via it's factory function. More...
|
|
static MaxUSDAPI void | Unregister (const std::string &key) |
| Unregisters a prim writer. More...
|
|
static MaxUSDAPI std::vector< MaxUsdPrimWriterSharedPtr > | GetAllWriters (const MaxUsdWriteJobContext &jobCtx) |
| Returns all prim writers for a given write job context. More...
|
|
static MaxUSDAPI std::vector< MaxUsdPrimWriterSharedPtr > | FindWriters (INode *node, const std::vector< MaxUsdPrimWriterSharedPtr > &candidateWriters) |
| Returns prim writers which can be used to translate a given object, given from a list of candidate writers. Prioritize ContextSupport::Supported over ContextSupport::Fallback. Other than this, writers are returned in the order they are they are received as candidates. More...
|
|
Provides functionality to register and lookup USD writer plugins for 3dsMax nodes.
Use PXR_MAXUSD_REGISTER_WRITER(uniqueName, writerClass) to register a writer class with the registry.
Prim writers derive from the PrimWriter class and are expected to implement several methods to specify what objects they are able to support, and how to actually perform the conversion.
In order for the core system to discover the plugin at export time, you need a plugInfo.json specifying the plugin's type.
{
"Plugins":[
{
"Info":{
"MaxUsd":{
"PrimWriter" : {}
}
},
"Name":"myTranslatorPlugin",
"Type":"library",
"LibraryPath":"myTranslatorPlugin.dll"
}
]
}