Table of Contents

About

NodeData based classic plugin classes can implement NodeData::GetDDescription(). This allows to dynamically add parameters to the element's parameter description. This description is then used by Cinema 4D to define the parameters that are displayed in the Attribute Manager.

NodeData::GetDDescription() corresponds to C4DAtom::GetDescription().

Note
NodeData::GetDDescription() will be called when the DIRTYFLAGS::DESCRIPTION flag of an object is set.

Usage

When NodeData::GetDDescription() is called it is supposed to fill the given Description object.

// This example defines the element's parameter description by loading the registered description of the plugin type.
virtual Bool GetDDescription(GeListNode* node, Description* description, DESCFLAGS_DESC& flags)
{
if (!node || !description)
return false;
// load the description of this type
if (!description->LoadDescription(node->GetType()))
return false;
return SUPER::GetDDescription(node, description, flags);
}

The arguments of the function are:

Details on how to handle a Description are described in Description Manual and Description Settings Manual.

Further Reading