#include <nodematerialexchange.h>
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") | |
|
private |
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.
[out] | graph | The node graph to fill with nodes, connections and values. |
[in] | materialData | The material data to import from. |
[in] | baseDocument | The scene into which the material is imported. |