#include <createdefaultmaterialdelegate.h>
Helper class to get/set the default material for renderers.
Static Public Member Functions | |
| static MAXON_METHOD void | SetRendererDefaultMaterial (Int32 rendererId, Int32 materialId) | 
| static MAXON_METHOD Int32 | GetRendererDefaultMaterial (Int32 rendererId) | 
Private Member Functions | |
| MAXON_INTERFACE_NONVIRTUAL (RendererDefaultMaterialInterface, MAXON_REFERENCE_STATIC, "net.maxon.rendererdefaultmaterial.interface") | |
      
  | 
  private | 
      
  | 
  static | 
Allows to define the default material (materialId) based on the current active renderer (rendererId) that is created when Cinema 4D preferences / Material / Material Manager / Default Material dropdown is set to "Auto".
| [in] | rendererId | The renderer ID. | 
| [in] | materialId | The material ID. | 
      
  | 
  static | 
Gets the material ID that has been defined for the renderer ID.
| [in] | rendererId | The renderer ID to query the material ID from. |