NodeData::GetDEnabling() Manual
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() .
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.
// check parameter ID switch ( id [0]. id ) { case EXAMPLE_GENERATOR_PARAMETER_VALUE: { // get the value of another parameter GeData data; node-> GetParameter (EXAMPLE_GENERATOR_PARAMETER_BOOL, data, DESCFLAGS_GET::NONE );
// if true, then enable the parameter // if not, disable the parameter if (data. GetBool ()) return true ; else return false ;
The arguments of the function are: