Message struct for the MSG_MULTI_MARKMATERIALS message.
This is an example of how to handle the message:
Bool MyObject::Message(
Int32 msg_type,
void* msg_data)
{
switch (msg_type)
{
{
if (data)
{
{
doc->undo.InitUndo(UNDO_CHANGE_SMALL,
this);
data.SetLink(MATERIAL_ID, mm->
nmat);
}
}
else
{
if (mat)
}
}
break;
}
return SUPER::Message(msg_type, msg_data);
}
Definition: c4d_basedocument.h:498
void SetBit(Int32 mask)
Definition: c4d_baselist.h:2263
Definition: c4d_basematerial.h:28
maxon::Bool Bool
Definition: ge_sys_math.h:55
maxon::Int32 Int32
Definition: ge_sys_math.h:60
#define BIT_MATMARK
Marked material.
Definition: ge_prepass.h:887
#define MSG_MULTI_MARKMATERIALS
Definition: c4d_baselist.h:528
const char * doc
Definition: pyerrors.h:226
Definition: c4d_baselist.h:779
BaseMaterial * nmat
New material. Cinema 4D owns the pointed material.
Definition: c4d_baselist.h:786
BaseMaterial * omat
Original material. Cinema 4D owns the pointed material.
Definition: c4d_baselist.h:785