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

The ShaderWriter base class from which material writers need to inherit from. A ShaderWriter instance is created for each material needing translation. More...

#include <ShaderWriter.h>

Public Types

enum class  ContextSupport { Unsupported , Supported , Fallback }
 

Public Member Functions

MaxUSDAPI MaxUsdShaderWriter (Mtl *material, const SdfPath &usdPath, MaxUsdWriteJobContext &jobCtx)
 

Detailed Description

The ShaderWriter base class from which material writers need to inherit from. A ShaderWriter instance is created for each material needing translation.

Two methods need to be implemented to have functional ShaderWriter:

  • CanExport(exportArgs) – a static classmethod which returns an enum value stating if the export context is maxUsd.ShaderWriter.ContextSupport::Supported, or Unsupported, or that the class acts as a Fallback.
  • Write() – the write method called to properly export the material

Member Enumeration Documentation

◆ ContextSupport

The level of support a writer can offer for a given context

A basic writer that gives correct results across most contexts should report Fallback, while a specialized writer that really shines in a given context should report Supported when the context is right and Unsupported if the context is not as expected.

Enumerator
Fallback 

‍Material type is supported


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