NodeMaterialImportInterface Class Reference

#include <nodematerialexchange.h>

Inheritance diagram for NodeMaterialImportInterface:

Detailed Description

Please see maxon::material::MaterialImport in "maxon/material/materialimport.h" for related information. NodeMaterialImport defines how a node material is created for import operations. If no importer is defined, a fallback is performed and creates a group node with image nodes, ignoring any texture buffers or substance references.

Public Member Functions

MAXON_METHOD Result< void > Import (NodesGraphModelRef &graph, const material::MaterialExchangeData &materialData, BaseDocument &baseDocument)
 

Private Member Functions

 MAXON_INTERFACE (NodeMaterialImportInterface, MAXON_REFERENCE_NORMAL, "net.maxon.nodes.interface.nodematerialimportinterface")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( NodeMaterialImportInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.nodes.interface.nodematerialimportinterface"   
)
private

◆ Import()

MAXON_METHOD Result<void> Import ( NodesGraphModelRef &  graph,
const material::MaterialExchangeData materialData,
BaseDocument baseDocument 
)

Populates a node graph based on the provided material data. The destination BaseDocument is provided for context.

Parameters
[out]graphThe node graph to fill with nodes, connections and values.
[in]materialDataThe material data to import from.
[in]baseDocumentThe scene into which the material is imported.
Returns
OK on success.