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)
{
{
DescriptionCommand* dc = (DescriptionCommand*) data;
if (dc->_descId[0].id == MORPHMIXER_RECORD)
{
...
}
break;
}
...
}
return true;
}
#define MSG_DESCRIPTION_COMMAND
Sent by for example BUTTON description element. The corresponding data is DescriptionCommand.
Definition: c4d_baselist.h:408
maxon::Bool Bool
Definition: ge_sys_math.h:46
maxon::Int32 Int32
Definition: ge_sys_math.h:51
PyObject ** type
Definition: pycore_pyerrors.h:34
Definition: node.h:10

Example

BUTTON MORPHMIXER_RECORD { }

Further Reading