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.
if (material == nullptr)
Definition: c4d_basematerial.h:28
Definition: c4d_basematerial.h:391
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
const char * doc
Definition: pyerrors.h:226
Use
A node material can contain multiple node system; one system for each node space.
if (nodeMaterial->
HasSpace(nodeSpaceID) ==
false)
maxon::Id GetActiveNodeSpaceId()
maxon::Result< const maxon::nodes::NodesGraphModelRef & > GetGraph(const maxon::Id &spaceId) const
Definition: c4d_basematerial.h:475
Bool HasSpace(const maxon::Id &spaceId) const
Definition: c4d_basematerial.h:403
Definition: apibaseid.h:253
#define iferr_return
Definition: resultbase.h:1519
maxon::NodePath path;
if (path.IsEmpty())
maxon::Result< void > GetMaterialNodePath(const maxon::Id &spaceId, maxon::NodePath &result) const
Definition: c4d_basematerial.h:411
Definition: basearray.h:412
Result< Bool > GetChildren(const ValueReceiver< const GraphNode & > &callback, NODE_KIND mask=NODE_KIND::ALL_MASK) const
Definition: graph.h:1160
return OK
Definition: apibase.h:2690
@ INPUT
Input direction, i.e., an input port or an incoming connection.
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)
{
}
}
const char const char * name
Definition: abstract.h:195
Definition: c4d_baselist.h:2208
String GetName() const
Definition: c4d_baselist.h:2381
CTrack * FindCTrack(const DescID &id)
Definition: c4d_canimation.h:671
Definition: lib_description.h:330
maxon::Result< const BaseList2D * > GetBaseListForNode(const maxon::Id &spaceId, const maxon::NodePath &nodePath)
Definition: c4d_basematerial.h:427
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: string.h:1235
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:176
Further functions are: