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

USD Scene Build configuration options. More...

#include <USDSceneBuilderOptions.h>

Inheritance diagram for USDSceneBuilderOptions:

Public Types

typedef std::map< std::string, std::string > ChaserArgs
 Gets the map of export chasers with their specified arguments. More...
 

Public Member Functions

MaxUSDAPI USDSceneBuilderOptions () noexcept
 Constructor.
 
MaxUSDAPI void SetOptions (const USDSceneBuilderOptions &options)
 Copies the values from an existing options object.
 
MaxUSDAPI void SetDefaults ()
 Set the the default option values.
 
MaxUSDAPI USDSceneBuilderOptions OptionsWithAppliedContexts () const
 Returns a copy of the current USDSceneBuilderOptions with the JobContext option overrides applied on that copy.
 
MaxUSDAPI void SetContentSource (const ContentSource &contentSource)
 Build USD content from the given 3ds Max content source. More...
 
MaxUSDAPI ContentSource GetContentSource () const
 Return the 3ds Max content source from which to build the USD scene. More...
 
MaxUSDAPI void SetTranslateMeshes (bool translateMeshes)
 Translate 3ds Max meshes into USD meshes. More...
 
MaxUSDAPI bool GetTranslateMeshes () const
 Check if 3ds Max meshes should be translated into USD meshes. More...
 
MaxUSDAPI void SetTranslateShapes (bool translateShapes)
 Translate 3ds Max shapes into USD meshes. More...
 
MaxUSDAPI bool GetTranslateShapes () const
 Check if 3ds Max shapes should be translated into USD meshes. More...
 
MaxUSDAPI void SetTranslateLights (bool translateLights)
 Translate 3ds Max lights into USD lights. More...
 
MaxUSDAPI bool GetTranslateLights () const
 Check if 3ds Max lights should be translated into USD lights. More...
 
MaxUSDAPI void SetTranslateCameras (bool translateCameras)
 Translate 3ds Max cameras into USD cameras. More...
 
MaxUSDAPI bool GetTranslateCameras () const
 Check if 3ds Max cameras should be translated into USD cameras. More...
 
MaxUSDAPI void SetTranslateMaterials (bool translateMaterials)
 Translate 3ds Max materials into USD. More...
 
MaxUSDAPI bool GetTranslateMaterials () const
 Check if materials should be translated. More...
 
MaxUSDAPI void SetTranslateSkin (bool trasnlateSkin)
 Translate 3ds Max skin and skeleton into USD. More...
 
MaxUSDAPI bool GetTranslateSkin () const
 Check if skin and skeleton should be translated. More...
 
MaxUSDAPI void SetShadingMode (const pxr::TfToken &shadingMode)
 Sets the shading schema (mode) to use for material export. More...
 
MaxUSDAPI pxr::TfToken GetShadingMode () const
 Gets the shading schema (mode) to use for material export. More...
 
MaxUSDAPI void SetAllMaterialConversions (const pxr::TfToken::Set &materialConversions)
 Sets the set of targeted materials for material conversion. More...
 
MaxUSDAPI const pxr::TfToken::Set & GetAllMaterialConversions () const
 Gets the set of targeted materials for material conversion. More...
 
MaxUSDAPI void SetConvertMaterialsTo (pxr::TfToken shader)
 Sets the USD material type targeted to convert the 3ds Max materials. More...
 
MaxUSDAPI pxr::TfToken GetConvertMaterialsTo () const
 Token identifier of the USD material type targeted to convert the 3ds Max materials. More...
 
MaxUSDAPI void SetUsdStagesAsReferences (bool usdStagesAsReferences)
 Sets whether USD Stage Objects should be exported as USD References. More...
 
MaxUSDAPI bool GetUsdStagesAsReferences () const
 Checks if USD Stage Objects should be exported as USD References. More...
 
MaxUSDAPI void SetTranslateHidden (bool translateHiddenObjects)
 Sets whether hidden objects should be translated. More...
 
MaxUSDAPI bool GetTranslateHidden () const
 Check if hidden objects should be translated. More...
 
MaxUSDAPI void SetUseUSDVisibility (bool useUSDVibility)
 Sets whether we should attempt to match the Hidden state in Max with the USD visibility attribute. More...
 
MaxUSDAPI bool GetUseUSDVisibility () const
 Check if we should attempt to match the Hidden state in Max with the USD visibility attribute. More...
 
MaxUSDAPI void SetFileFormat (const FileFormat &format)
 Set the internal format of the USD file to export. More...
 
MaxUSDAPI FileFormat GetFileFormat () const
 Return the format of the file to export. More...
 
MaxUSDAPI void SetNormalsMode (const MaxMeshConversionOptions::NormalsMode &normalsMode)
 Sets how normals should be exported. More...
 
MaxUSDAPI MaxMeshConversionOptions::NormalsMode GetNormalsMode () const
 Return how normals should be exported. More...
 
MaxUSDAPI void SetMeshFormat (const MaxMeshConversionOptions::MeshFormat &meshFormat)
 Sets how meshes should be exported. More...
 
MaxUSDAPI MaxMeshConversionOptions::MeshFormat GetMeshFormat () const
 Return how meshes should be exported. More...
 
MaxUSDAPI void SetUpAxis (const UpAxis &upAxis)
 Set the "up axis" of the USD Stage produced from the translation of the 3ds Max content. More...
 
MaxUSDAPI UpAxis GetUpAxis () const
 Return the "up axis" of the USD Stage produced from the translation of the 3ds Max content. More...
 
MaxUSDAPI MaxMeshConversionOptionsGetMeshConversionOptions ()
 Gets the mesh conversion options. More...
 
MaxUSDAPI const MaxMeshConversionOptionsGetMeshConversionOptions () const
 
MaxUSDAPI void SetNodesToExport (const Tab< INode * > &nodes)
 Sets the nodes to convert to USD. More...
 
MaxUSDAPI const Tab< INode * > & GetNodesToExport () const
 Gets the nodes to convert to USD. More...
 
MaxUSDAPI void SetTimeMode (const TimeMode &timeMode)
 Sets the time mode for export, either CURRENT or EXPLICIT. If explicit, export from the time specified by the Time property. More...
 
MaxUSDAPI TimeMode GetTimeMode () const
 Gets the time mode to be used for export. More...
 
MaxUSDAPI void SetStartFrame (double startFrame)
 Sets the first frame from which to export, only used if the time mode is EXPLICIT or FRAME_RANGE. More...
 
MaxUSDAPI double GetStartFrame () const
 Gets the first frame from which to export, only used if the time mode is configured as EXPLICIT or FRAME_RANGE. More...
 
MaxUSDAPI void SetEndFrame (double endFrame)
 Sets the last frame from which to export, only used if the time mode is FRAME_RANGE. More...
 
MaxUSDAPI double GetEndFrame () const
 Gets the last frame from which to export, only used if the time mode is configured as FRAME_RANGE. More...
 
MaxUSDAPI void SetSamplesPerFrame (double samplesPerFrame)
 Sets the number of samples to be exported to USD, per frame. More...
 
MaxUSDAPI double GetSamplesPerFrame () const
 Gets the number of samples to be exported to USD, per frame. More...
 
MaxUSDAPI const maxUsd::TimeConfig GetResolvedTimeConfig () const
 Resolves the actual time configuration from the selected TimeMode, the set values for startFrame and endFrame, and the current max time slider configuration. For example, if the time mode is ANIMATION_RANGE, the start and end frames in the returned time config will be set from the current time slider configuration in the scene. More...
 
MaxUSDAPI void SetRootPrimPath (const std::wstring &rootPrimPath)
 Sets the root prim path to export to. More...
 
MaxUSDAPI const std::wstring & GetRootPrimPath () const
 Gets the configured root prim path. More...
 
MaxUSDAPI const pxr::TfToken & GetBonesPrimName () const
 Gets the configured bone prim name. More...
 
MaxUSDAPI void SetBonesPrimName (const pxr::TfToken &bonesPrimName)
 Set the the name to be used for the bone prim. More...
 
MaxUSDAPI const pxr::TfToken & GetAnimationsPrimName () const
 Gets the configured animation prim name. More...
 
MaxUSDAPI void SetAnimationsPrimName (const pxr::TfToken &animationsPrimName)
 Set the the name to be used for the Animation prim. More...
 
MaxUSDAPI void SetOpenInUsdview (bool openInUsdview)
 Whether or not the produced USD file should be opened in Usdview at the end of the export. More...
 
MaxUSDAPI bool GetOpenInUsdview () const
 Check if the produced USD file should be opened in Usdview at the end of the export. More...
 
MaxUSDAPI const std::vector< std::string > & GetChaserNames () const
 Gets the list of export chasers to be called at USD export. More...
 
MaxUSDAPI void SetChaserNames (const std::vector< std::string > &chasers)
 Sets the chaser list to use at export. More...
 
MaxUSDAPI const std::map< std::string, ChaserArgs > & GetAllChaserArgs () const
 
MaxUSDAPI void SetAllChaserArgs (const std::map< std::string, ChaserArgs > &chaserArgs) const
 Sets the export chasers' arguments map. More...
 
MaxUSDAPI void SetAllowNestedGprims (bool allowNestedGprims)
 Sets whether or not the exporter should allow nested Gprims. Nested gprims are technically illegal in USD, but will still work in many usage scenarios. Allowing nested Gprims may significantly reduces the number of total primitives, potentially improving performance. The output USD structure will also match closer to the source 3dsMax scene structure. More...
 
MaxUSDAPI bool GetAllowNestedGprims () const
 Gets whether or not the exporter should allow nested Gprims. Nested gprims are technically illegal in USD, but will still work in many usage scenarios. Allowing nested Gprims may significantly reduces the number of total primitives, potentially improving performance. The output USD structure will also match closer to the source 3dsMax scene structure. More...
 
MaxUSDAPI void SetContextNames (const std::set< std::string > contexts)
 Sets the context list to use at export. More...
 
MaxUSDAPI const std::set< std::string > & GetContextNames () const
 Gets the list of contexts (plug-in configurations) to be applied on USD export. More...
 

Static Public Attributes

static MaxUSDAPI const double MIN_SAMPLES_PER_FRAME
 
static MaxUSDAPI const double MAX_SAMPLES_PER_FRAME
 

Protected Attributes

ContentSource contentSource { ContentSource::RootNode}
 Source of the 3ds Max content from which to build the USD scene:
 
bool translateMeshes { false }
 Flag indicating if the meshes should be translated between 3dsMax and USD:
 
bool translateShapes { false }
 Flag indicating if the shapes should be translated between 3dsMax and USD:
 
bool translateLights { false }
 Flag indicating if the lights should be translated between 3dsMax and USD:
 
bool translateCameras { false }
 Flag indicating if the cameras should be translated between 3dsMax and USD:
 
bool translateMaterials { false }
 Flag indicating if the materials should be translated between 3dsMax and USD:
 
bool translateSkin { false }
 Flag indicating if skin and bones should be translated between 3dsMax and USD:
 
pxr::TfToken shadingMode
 Specifies the shading schema to use for material export.
 
pxr::TfToken::Set allMaterialConversions
 Specifies the set of targeted materials for material conversion on export.
 
pxr::TfToken convertMaterialsTo
 
bool translateHidden { false }
 Flag indicating if hidden objects should be translated between 3dsMax and USD:
 
bool usdStagesAsReferences { false }
 Flag indicating if USD Stage objects should be exported as USD references.
 
bool useUSDVisibility { false }
 Flag indicating if we should use the USD visibility attribute to match the Max hidden state.
 
bool allowNestedGprims { false }
 Flag indicating if the exporter is allowed to nest Gprims.
 
FileFormat saveFormat {FileFormat::ASCII}
 Internal format of the USD file to export:
 
UpAxis upAxis {UpAxis::Y}
 Up axis of the USD Stage produced from the translation of the 3ds Max content:
 
MaxMeshConversionOptions meshConversionOptions
 Mesh conversion options.
 
Tab< INode * > nodesToExport
 
TimeMode timeMode
 Describes what frames to export.
 
maxUsd::TimeConfig timeConfig
 Time configuration for the export to USD.
 
std::wstring rootPrimPath
 Root prim path to export to.
 
pxr::TfToken bonesPrimName
 Prim to be created to put the bones on.
 
pxr::TfToken skelAnimPrimName
 Prim to be created to put the skeleton animation on.
 
bool openInUsdview
 Whether or not to open the exported file in Usdview.
 
std::vector< std::string > chaserNames
 Chasers and their arguments.
 
std::map< std::string, ChaserArgsallChaserArgs
 
std::set< std::string > contextNames
 Contexts (plugin config) names.
 

Detailed Description

USD Scene Build configuration options.

Member Typedef Documentation

◆ ChaserArgs

typedef std::map<std::string, std::string> USDSceneBuilderOptions::ChaserArgs

Gets the map of export chasers with their specified arguments.

Returns
The map of export chasers with their specified arguments

Member Function Documentation

◆ GetAllMaterialConversions()

MaxUSDAPI const pxr::TfToken::Set & USDSceneBuilderOptions::GetAllMaterialConversions ( ) const

Gets the set of targeted materials for material conversion.

Returns
USD Material target set to convert to

◆ GetAllowNestedGprims()

MaxUSDAPI bool USDSceneBuilderOptions::GetAllowNestedGprims ( ) const

Gets whether or not the exporter should allow nested Gprims. Nested gprims are technically illegal in USD, but will still work in many usage scenarios. Allowing nested Gprims may significantly reduces the number of total primitives, potentially improving performance. The output USD structure will also match closer to the source 3dsMax scene structure.

Returns
True if nesting GPrims is allowed. False otherwise.

◆ GetAnimationsPrimName()

MaxUSDAPI const pxr::TfToken & USDSceneBuilderOptions::GetAnimationsPrimName ( ) const

Gets the configured animation prim name.

Returns
The configured animation prim name.

◆ GetBonesPrimName()

MaxUSDAPI const pxr::TfToken & USDSceneBuilderOptions::GetBonesPrimName ( ) const

Gets the configured bone prim name.

Returns
The configured bone prim name.

◆ GetChaserNames()

MaxUSDAPI const std::vector< std::string > & USDSceneBuilderOptions::GetChaserNames ( ) const

Gets the list of export chasers to be called at USD export.

Returns
All export chasers to be called at USD export

◆ GetContentSource()

MaxUSDAPI ContentSource USDSceneBuilderOptions::GetContentSource ( ) const

Return the 3ds Max content source from which to build the USD scene.

Returns
The 3ds Max content source from which to build the USD scene.

◆ GetContextNames()

MaxUSDAPI const std::set< std::string > & USDSceneBuilderOptions::GetContextNames ( ) const

Gets the list of contexts (plug-in configurations) to be applied on USD export.

Returns
All contexts names to be applied on USD export

◆ GetConvertMaterialsTo()

MaxUSDAPI pxr::TfToken USDSceneBuilderOptions::GetConvertMaterialsTo ( ) const
inline

Token identifier of the USD material type targeted to convert the 3ds Max materials.

Returns
USD Material type to convert to

◆ GetEndFrame()

MaxUSDAPI double USDSceneBuilderOptions::GetEndFrame ( ) const

Gets the last frame from which to export, only used if the time mode is configured as FRAME_RANGE.

Returns
The last frame to use for export.

◆ GetFileFormat()

MaxUSDAPI FileFormat USDSceneBuilderOptions::GetFileFormat ( ) const

Return the format of the file to export.

Returns
The format of the file to export.

◆ GetMeshConversionOptions()

MaxUSDAPI MaxMeshConversionOptions & USDSceneBuilderOptions::GetMeshConversionOptions ( )

Gets the mesh conversion options.

Returns
The mesh conversion options.

◆ GetMeshFormat()

MaxUSDAPI MaxMeshConversionOptions::MeshFormat USDSceneBuilderOptions::GetMeshFormat ( ) const

Return how meshes should be exported.

Returns
The mesh format in use.

◆ GetNodesToExport()

MaxUSDAPI const Tab< INode * > & USDSceneBuilderOptions::GetNodesToExport ( ) const

Gets the nodes to convert to USD.

Returns
The nodes to convert to USD.

◆ GetNormalsMode()

MaxUSDAPI MaxMeshConversionOptions::NormalsMode USDSceneBuilderOptions::GetNormalsMode ( ) const

Return how normals should be exported.

Returns
The normals export mode.

◆ GetOpenInUsdview()

MaxUSDAPI bool USDSceneBuilderOptions::GetOpenInUsdview ( ) const

Check if the produced USD file should be opened in Usdview at the end of the export.

Returns
"true" if the produced file should be open in usdview.

◆ GetResolvedTimeConfig()

MaxUSDAPI const maxUsd::TimeConfig USDSceneBuilderOptions::GetResolvedTimeConfig ( ) const

Resolves the actual time configuration from the selected TimeMode, the set values for startFrame and endFrame, and the current max time slider configuration. For example, if the time mode is ANIMATION_RANGE, the start and end frames in the returned time config will be set from the current time slider configuration in the scene.

Returns
The time configuration, directly usable.

◆ GetRootPrimPath()

MaxUSDAPI const std::wstring & USDSceneBuilderOptions::GetRootPrimPath ( ) const

Gets the configured root prim path.

Returns
The configured root prim path.

◆ GetSamplesPerFrame()

MaxUSDAPI double USDSceneBuilderOptions::GetSamplesPerFrame ( ) const

Gets the number of samples to be exported to USD, per frame.

Returns
The number of samples per frame.

◆ GetShadingMode()

MaxUSDAPI pxr::TfToken USDSceneBuilderOptions::GetShadingMode ( ) const

Gets the shading schema (mode) to use for material export.

Returns
The shading schema (mode) to apply on materials

◆ GetStartFrame()

MaxUSDAPI double USDSceneBuilderOptions::GetStartFrame ( ) const

Gets the first frame from which to export, only used if the time mode is configured as EXPLICIT or FRAME_RANGE.

Returns
The first frame to use for export.

◆ GetTimeMode()

MaxUSDAPI TimeMode USDSceneBuilderOptions::GetTimeMode ( ) const

Gets the time mode to be used for export.

Returns
The time mode.

◆ GetTranslateCameras()

MaxUSDAPI bool USDSceneBuilderOptions::GetTranslateCameras ( ) const

Check if 3ds Max cameras should be translated into USD cameras.

Returns
"true" if the 3ds Max cameras should be translated into USD cameras.

◆ GetTranslateHidden()

MaxUSDAPI bool USDSceneBuilderOptions::GetTranslateHidden ( ) const

Check if hidden objects should be translated.

Returns
True if hidden objects should be translated, false otherwise.

◆ GetTranslateLights()

MaxUSDAPI bool USDSceneBuilderOptions::GetTranslateLights ( ) const

Check if 3ds Max lights should be translated into USD lights.

Returns
"true" if the 3ds Max lights should be translated into USD lights.

◆ GetTranslateMaterials()

MaxUSDAPI bool USDSceneBuilderOptions::GetTranslateMaterials ( ) const

Check if materials should be translated.

Returns
"true" if materials should be translated

◆ GetTranslateMeshes()

MaxUSDAPI bool USDSceneBuilderOptions::GetTranslateMeshes ( ) const

Check if 3ds Max meshes should be translated into USD meshes.

Returns
"true" if the 3ds Max meshes should be translated into USD meshes.

◆ GetTranslateShapes()

MaxUSDAPI bool USDSceneBuilderOptions::GetTranslateShapes ( ) const

Check if 3ds Max shapes should be translated into USD meshes.

Returns
"true" if the 3ds Max shapes should be translated into USD meshes.

◆ GetTranslateSkin()

MaxUSDAPI bool USDSceneBuilderOptions::GetTranslateSkin ( ) const

Check if skin and skeleton should be translated.

Returns
"true" if skin and skeleton should be translated

◆ GetUpAxis()

MaxUSDAPI UpAxis USDSceneBuilderOptions::GetUpAxis ( ) const

Return the "up axis" of the USD Stage produced from the translation of the 3ds Max content.

Returns
The "up axis" of the USD Stage produced from the translation of the 3ds Max content.

◆ GetUsdStagesAsReferences()

MaxUSDAPI bool USDSceneBuilderOptions::GetUsdStagesAsReferences ( ) const

Checks if USD Stage Objects should be exported as USD References.

Returns
"true" if USD Stages should be exported as references.

◆ GetUseUSDVisibility()

MaxUSDAPI bool USDSceneBuilderOptions::GetUseUSDVisibility ( ) const

Check if we should attempt to match the Hidden state in Max with the USD visibility attribute.

Returns
True if hidden objects should be flagged invisible using the USD visibility attribute.

◆ SetAllChaserArgs()

MaxUSDAPI void USDSceneBuilderOptions::SetAllChaserArgs ( const std::map< std::string, ChaserArgs > &  chaserArgs) const

Sets the export chasers' arguments map.

Parameters
chaserArgsa map of arguments

◆ SetAllMaterialConversions()

MaxUSDAPI void USDSceneBuilderOptions::SetAllMaterialConversions ( const pxr::TfToken::Set &  materialConversions)

Sets the set of targeted materials for material conversion.

Parameters
materialConversionsUSD Material target set to convert to

◆ SetAllowNestedGprims()

MaxUSDAPI void USDSceneBuilderOptions::SetAllowNestedGprims ( bool  allowNestedGprims)

Sets whether or not the exporter should allow nested Gprims. Nested gprims are technically illegal in USD, but will still work in many usage scenarios. Allowing nested Gprims may significantly reduces the number of total primitives, potentially improving performance. The output USD structure will also match closer to the source 3dsMax scene structure.

Parameters
allowNestedGprimsTrue if nesting GPrims is allowed.

◆ SetAnimationsPrimName()

MaxUSDAPI void USDSceneBuilderOptions::SetAnimationsPrimName ( const pxr::TfToken &  animationsPrimName)

Set the the name to be used for the Animation prim.

Parameters
animationsPrimNameNew name to be used for the Animation prim

◆ SetBonesPrimName()

MaxUSDAPI void USDSceneBuilderOptions::SetBonesPrimName ( const pxr::TfToken &  bonesPrimName)

Set the the name to be used for the bone prim.

Parameters
bonesPrimNameNew name to be used for the bone prim

◆ SetChaserNames()

MaxUSDAPI void USDSceneBuilderOptions::SetChaserNames ( const std::vector< std::string > &  chasers)

Sets the chaser list to use at export.

Parameters
chasersThe list of export chaser to call at export

◆ SetContentSource()

MaxUSDAPI void USDSceneBuilderOptions::SetContentSource ( const ContentSource &  contentSource)

Build USD content from the given 3ds Max content source.

Parameters
contentSourceSource of the 3ds Max content from which to build the USD scene.

◆ SetContextNames()

MaxUSDAPI void USDSceneBuilderOptions::SetContextNames ( const std::set< std::string >  contexts)

Sets the context list to use at export.

Parameters
contextsThe list of context to apply at export

◆ SetConvertMaterialsTo()

MaxUSDAPI void USDSceneBuilderOptions::SetConvertMaterialsTo ( pxr::TfToken  shader)
inline

Sets the USD material type targeted to convert the 3ds Max materials.

Parameters
shaderThe USD Material type to convert to

◆ SetEndFrame()

MaxUSDAPI void USDSceneBuilderOptions::SetEndFrame ( double  endFrame)

Sets the last frame from which to export, only used if the time mode is FRAME_RANGE.

Parameters
timeThe last frame to use for export.

◆ SetFileFormat()

MaxUSDAPI void USDSceneBuilderOptions::SetFileFormat ( const FileFormat &  format)

Set the internal format of the USD file to export.

Parameters
saveFormatFormat of the file to export.

◆ SetMeshFormat()

MaxUSDAPI void USDSceneBuilderOptions::SetMeshFormat ( const MaxMeshConversionOptions::MeshFormat &  meshFormat)

Sets how meshes should be exported.

Parameters
meshFormatThe mesh format to be used.

◆ SetNodesToExport()

MaxUSDAPI void USDSceneBuilderOptions::SetNodesToExport ( const Tab< INode * > &  nodes)

Sets the nodes to convert to USD.

Parameters
Thenodes to convert to USD.

◆ SetNormalsMode()

MaxUSDAPI void USDSceneBuilderOptions::SetNormalsMode ( const MaxMeshConversionOptions::NormalsMode &  normalsMode)

Sets how normals should be exported.

Parameters
normalsModeThe normals export mode.

◆ SetOpenInUsdview()

MaxUSDAPI void USDSceneBuilderOptions::SetOpenInUsdview ( bool  openInUsdview)

Whether or not the produced USD file should be opened in Usdview at the end of the export.

Parameters
openInUsdview"true" to open the file in usdview when the export completes.

◆ SetRootPrimPath()

MaxUSDAPI void USDSceneBuilderOptions::SetRootPrimPath ( const std::wstring &  rootPrimPath)

Sets the root prim path to export to.

Parameters
valueThe root prim path to configure.

◆ SetSamplesPerFrame()

MaxUSDAPI void USDSceneBuilderOptions::SetSamplesPerFrame ( double  samplesPerFrame)

Sets the number of samples to be exported to USD, per frame.

Parameters
samplesPerFrameThe number of samples per frame.

◆ SetShadingMode()

MaxUSDAPI void USDSceneBuilderOptions::SetShadingMode ( const pxr::TfToken &  shadingMode)

Sets the shading schema (mode) to use for material export.

Parameters
shadingModeThe shading schema (mode) to apply on material export

◆ SetStartFrame()

MaxUSDAPI void USDSceneBuilderOptions::SetStartFrame ( double  startFrame)

Sets the first frame from which to export, only used if the time mode is EXPLICIT or FRAME_RANGE.

Parameters
timeThe first frame to use for export.

◆ SetTimeMode()

MaxUSDAPI void USDSceneBuilderOptions::SetTimeMode ( const TimeMode &  timeMode)

Sets the time mode for export, either CURRENT or EXPLICIT. If explicit, export from the time specified by the Time property.

Parameters
timeModeThe time mode to set.

◆ SetTranslateCameras()

MaxUSDAPI void USDSceneBuilderOptions::SetTranslateCameras ( bool  translateCameras)

Translate 3ds Max cameras into USD cameras.

Parameters
translateCameras"true" to translate 3ds Max cameras into USD cameras.

◆ SetTranslateHidden()

MaxUSDAPI void USDSceneBuilderOptions::SetTranslateHidden ( bool  translateHiddenObjects)

Sets whether hidden objects should be translated.

Parameters
translateHiddenObjectsTrue to translate hidden objects, false otherwise.

◆ SetTranslateLights()

MaxUSDAPI void USDSceneBuilderOptions::SetTranslateLights ( bool  translateLights)

Translate 3ds Max lights into USD lights.

Parameters
translateLights"true" to translate 3ds Max lights into USD lights.

◆ SetTranslateMaterials()

MaxUSDAPI void USDSceneBuilderOptions::SetTranslateMaterials ( bool  translateMaterials)

Translate 3ds Max materials into USD.

Parameters
translateMaterials"true" to translate materials

◆ SetTranslateMeshes()

MaxUSDAPI void USDSceneBuilderOptions::SetTranslateMeshes ( bool  translateMeshes)

Translate 3ds Max meshes into USD meshes.

Parameters
translateMeshes"true" to translate 3ds Max meshes into USD meshes.

◆ SetTranslateShapes()

MaxUSDAPI void USDSceneBuilderOptions::SetTranslateShapes ( bool  translateShapes)

Translate 3ds Max shapes into USD meshes.

Parameters
translateMeshes"true" to translate 3ds Max meshes into USD meshes.

◆ SetTranslateSkin()

MaxUSDAPI void USDSceneBuilderOptions::SetTranslateSkin ( bool  trasnlateSkin)

Translate 3ds Max skin and skeleton into USD.

Parameters
trasnlateSkin"true" to translate skin and skeleton

◆ SetUpAxis()

MaxUSDAPI void USDSceneBuilderOptions::SetUpAxis ( const UpAxis &  upAxis)

Set the "up axis" of the USD Stage produced from the translation of the 3ds Max content.

Parameters
upAxisUp axis of the USD Stage produced from the translation of the 3ds Max content.

◆ SetUsdStagesAsReferences()

MaxUSDAPI void USDSceneBuilderOptions::SetUsdStagesAsReferences ( bool  usdStagesAsReferences)

Sets whether USD Stage Objects should be exported as USD References.

Parameters
usdStagesAsReferences"true" if USD Stages should be exported as references.

◆ SetUseUSDVisibility()

MaxUSDAPI void USDSceneBuilderOptions::SetUseUSDVisibility ( bool  useUSDVibility)

Sets whether we should attempt to match the Hidden state in Max with the USD visibility attribute.

Parameters
useUSDVibilityTrue if hidden objects should be flagged invisible using the USD visibility attribute.

Member Data Documentation

◆ convertMaterialsTo

pxr::TfToken USDSceneBuilderOptions::convertMaterialsTo
protected

Specifies the current targeted material being treated by the material export process this member is set by the process ONLY

◆ nodesToExport

Tab<INode*> USDSceneBuilderOptions::nodesToExport
protected

A List of nodes to export (if any). Used when exporting with option USDSceneBuilderOptions::ContentSource::NodeList


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