BUTTON

Definition

BUTTON [id]
{
  [Common flags]
}

Description

Creates a clickable button in the description. It does not directly correspond to an item in the container.
To check when it is clicked listen for MSG_DESCRIPTION_COMMAND in NodeData::Message():

Bool MorphMixerObject::Message(GeListNode* node, Int32 type, void* data)
{
switch (type)
{
{
if (dc->_descId[0].id == MORPHMIXER_RECORD)
{
...
}
break;
}
...
}
return true;
}
Represents a C4DAtom that resides in a 4D list.
Definition: c4d_baselist.h:1813
maxon::Bool Bool
Definition: ge_sys_math.h:55
maxon::Int32 Int32
Definition: ge_sys_math.h:60
#define MSG_DESCRIPTION_COMMAND
Sent by for example BUTTON description element. The corresponding data is DescriptionCommand.
Definition: c4d_baselist.h:376
PyObject ** type
Definition: pycore_pyerrors.h:34
Definition: node.h:10
DescID _descId
Description ID of the parameter that triggered the command.
Definition: lib_description.h:845
Message struct for MSG_DESCRIPTION_COMMAND.
Definition: lib_description.h:853

Example

BUTTON MORPHMIXER_RECORD { }

Further Reading