About
NodeData based classic plugin classes can implement NodeData::GetDEnabling(). This allows to dynamically enable and disable parameters in the Attribute Manager.
NodeData::GetDEnabling() corresponds to C4DAtom::GetEnabling().
Usage
NodeData::GetDEnabling() is called with the DescID of each parameter. The function simply returns true if the given parameter should be enabled and false if the given parameter should be disabled.
  {
      return false;
 
    
    switch (id[0].id)
    {
      case EXAMPLE_GENERATOR_PARAMETER_VALUE:
      {
        
 
        
        
          return true;
        else
          return false;
 
        break;
      }
    }
 
    return SUPER::GetDEnabling(
node, 
id, t_data, 
flags, itemdesc);
 
  }
PyCompilerFlags * flags
Definition: ast.h:14
 
Definition: c4d_basecontainer.h:48
 
Definition: lib_description.h:355
 
Definition: c4d_gedata.h:83
 
Bool GetBool() const
Definition: c4d_gedata.h:450
 
Represents a C4DAtom that resides in a 4D list.
Definition: c4d_baselist.h:1844
 
maxon::Bool Bool
Definition: ge_sys_math.h:55
 
DESCFLAGS_ENABLE
Definition: ge_prepass.h:3351
 
#define ConstDescID(...)
Definition: lib_description.h:594
 
Represents a level within a DescID.
Definition: lib_description.h:298
 
  The arguments of the function are:
- The node itself.
 
- The parameter DescID in question.
 
- The parameter value.
 
- Some flags that are currently not used.
 
- The parameter description stored in a BaseContainer.
 
Further Reading