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)
Bool IsNodeBased() const
Definition: c4d_baselist.h:3048
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:243
#define iferr_return
Definition: resultbase.h:1524
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:415
Result< Bool > GetChildren(const ValueReceiver< const GraphNode & > &callback, NODE_KIND mask=NODE_KIND::ALL_MASK) const
Definition: graph.h:1192
return OK
Definition: apibase.h:2735
@ 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:2377
String GetName() const
Definition: c4d_baselist.h:2544
const CTrack * FindCTrack(const DescID &id) const
Definition: c4d_baselist.h:2884
Definition: c4d_canimation.h:671
Definition: lib_description.h:355
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:1237
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
Further functions are: