3ds Max USD API Reference
Loading...
Searching...
No Matches
MaxUsdWriteJobContext Class Reference

Provides basic functionality and access to shared data for prim and shader writers. More...

#include <WriteJobContext.h>

Public Member Functions

MaxUSDAPI MaxUsdWriteJobContext (UsdStageRefPtr stage, const std::string &filename, const USDSceneBuilderOptions &args)
 Constructor.
 
MaxUSDAPI ~MaxUsdWriteJobContext ()=default
 Destructor.
 
const USDSceneBuilderOptionsGetArgs () const
 Returns the export arguments. More...
 
const UsdStageRefPtr & GetUsdStage () const
 The USD Stage we are inthe process of building. More...
 
const std::string & GetFilename () const
 Gets the file we are exporting to. More...
 
void SetNodesToPrimsMap (const std::map< INode *, SdfPath > &nodesToPrims)
 Sets the current nodes being exported and their respective paths. More...
 
const std::map< INode *, SdfPath > & GetNodesToPrimsMap () const
 Returns the nodes being exported and their respective prim paths. More...
 

Protected Attributes

const USDSceneBuilderOptionsargs
 
UsdStageRefPtr stage
 
std::string filename
 
std::map< INode *, SdfPath > maxNodesToPrims
 

Detailed Description

Provides basic functionality and access to shared data for prim and shader writers.

Member Function Documentation

◆ GetArgs()

const USDSceneBuilderOptions & MaxUsdWriteJobContext::GetArgs ( ) const
inline

Returns the export arguments.

Returns
Export arguments

◆ GetFilename()

const std::string & MaxUsdWriteJobContext::GetFilename ( ) const
inline

Gets the file we are exporting to.

Returns
The file path.

◆ GetNodesToPrimsMap()

const std::map< INode *, SdfPath > & MaxUsdWriteJobContext::GetNodesToPrimsMap ( ) const
inline

Returns the nodes being exported and their respective prim paths.

Returns
Map with the nodes and their prim path.

◆ GetUsdStage()

const UsdStageRefPtr & MaxUsdWriteJobContext::GetUsdStage ( ) const
inline

The USD Stage we are inthe process of building.

Returns
The usd

◆ SetNodesToPrimsMap()

void MaxUsdWriteJobContext::SetNodesToPrimsMap ( const std::map< INode *, SdfPath > &  nodesToPrims)

Sets the current nodes being exported and their respective paths.

Parameters
nodeToPrimmap with the nodes being exported and their paths

The documentation for this class was generated from the following file: