About
A NodeMaterial represents a material containing node system. It can contain a separate node system for each available node space.
Access
A node material is accessed by checking if a given material uses nodes. Then the material can be cast into NodeMaterial.
Use
A node material can contain multiple node system; one system for each node space.
if (nodeMaterial->
HasSpace(nodeSpaceID) ==
false)
maxon::NodePath path;
if (path.IsEmpty())
The node system does not store animation data. The animation data for a given node is stored in a BaseList2D object and its CTrack animation tracks.
{
if (track != nullptr)
{
}
}
Further functions are:
maxon::Result< const BaseList2D * > GetBaseListForNode(const maxon::Id &spaceId, const maxon::NodePath &nodePath)
Definition: c4d_basematerial.h:427
Definition: c4d_baselist.h:2174
Result< Bool > GetChildren(const ValueReceiver< const GraphNode & > &callback, NODE_KIND mask=NODE_KIND::ALL_MASK) const
Definition: graph.h:1303
Definition: lib_description.h:328
@ INPUT
Input direction, i.e., an input port or an incoming connection.
Definition: string.h:1225
BaseMaterial * GetActiveMaterial(void)
return OK
Definition: apibase.h:2620
maxon::Id GetActiveNodeSpaceId()
maxon::Result< void > GetDescIDForNodePort(const maxon::Id &spaceId, const maxon::GraphNode &node, const maxon::GraphNode &port, DescID &result) const
Definition: c4d_basematerial.h:437
Definition: apibaseid.h:250
Result< typename SFINAEHelper< GraphNode, BASE >::type > GetPortList(PORT_DIR dir) const
Definition: graph.h:1358
#define iferr_return
Definition: resultbase.h:1465
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
CTrack * FindCTrack(const DescID &id)
Definition: basearray.h:411
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:176
Definition: c4d_canimation.h:659
Bool HasSpace(const maxon::Id &spaceId) const
Definition: c4d_basematerial.h:403
maxon::Result< void > GetMaterialNodePath(const maxon::Id &spaceId, maxon::NodePath &result) const
Definition: c4d_basematerial.h:411
maxon::Result< const maxon::nodes::NodesGraphModelRef & > GetGraph(const maxon::Id &spaceId) const
Definition: c4d_basematerial.h:475
Definition: c4d_basematerial.h:390
String GetName() const
Definition: c4d_baselist.h:2348
Definition: c4d_basematerial.h:27