About
A node space represents a container for a node system for a specific purpose. For example, a NodeMaterial can contain multiple node systems; one for each node-based render engine.
For custom node spaces, see NodeSpaceInterface Implementation.
Access
Node spaces are stored in the maxon::nodes::MaterialNodeSpaces registry. The active node space ID is obtained with GetActiveNodeSpaceId(). The default node space is:
- maxon::nodes::MaterialNodeSpaces::Standard: The standard node space.
 
  
  
  
  const maxon::Id standardNodeSpace = maxon::nodes::MaterialNodeSpaces::Standard.GetId();
 
 
  
 
  
  if (standardNodeSpace == activeNodeSpace)
  {
  }
Definition: apibaseid.h:243
 
#define ApplicationOutput(formatString,...)
Definition: debugdiagnostics.h:204
 
maxon::Id GetActiveNodeSpaceId()
 
 A node space stores various settings. The most important are:
- maxon::nodes::NODESPACE::SPACENAME: The name of the node space.
 
- maxon::nodes::NODESPACE::RENDERERS: The IDs of the associated render engines (VideoPostData plugin IDs).
 
For more settings, see MAXON_ATTRIBUTE from the maxon::nodes::NODESPACE.
- Note
 - The Cinema 4D standard renderer has the ID 0.
 
    
 
    
 
    
    maxon::DataDictionary spaceData = nodeSpace.GetData();
 
    for (const auto& data : spaceData)
    {
    }
 
    
 
PyObject * value
Definition: abstract.h:715
 
PyObject * key
Definition: abstract.h:289
 
const char const char * name
Definition: abstract.h:195
 
Definition: datatypebase.h:1234
 
Definition: datatypebase.h:770
 
Definition: string.h:1287
 
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
 
const Class< R > & Get(const Id &cls)
Definition: objectbase.h:2090
 
PyObject ** type
Definition: pycore_pyerrors.h:34
 
#define iferr_return
Definition: resultbase.h:1531
 
      
 
    
    for (const auto& it : maxon::nodes::MaterialNodeSpaces::GetEntries())
    {
      const maxon::nodes::NodeSpaceRef nodeSpace = it;
 
      
      const maxon::DataDictionary      spaceData = nodeSpace.GetData();
 
      
      const maxon::Id spaceID = spaceData.GetOrDefault(maxon::nodes::NODESPACE::SPACEID);
 
 
      
 
      {
      }
    }
Definition: datadictionary.h:11
 
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:187