On 21/06/2018 at 03:38, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Windows ;
Language(s) : C++ ;
---------
I've created a basic exclude list and a button
GROUP OBJECT_GROUP_BACKGROUNDS
{ _
_ DEFAULT 1;
_ IN_EXCLUDE OBJECT_EXPORTABLE_GEOMETRY_
_ {_
_ NUM_FLAGS 0;_
_ ACCEPT { Opolygon; };_
_ } _
_ BUTTON OBJECT_EXPORT_BACKGROUNDS {}_
}
And I need to get the click on the button and list all the items of the list and I tried
Bool ObjectData::Message(GeListNode* node, Int32 type, void* data)
{
_ //............_
_
_
_ if (((DescriptionCommand* )data)- >id == DescID(OBJECT_EXPORT_BACKGROUNDS))_
_ {_
_
GeData outdata;
const Bool success = ((BaseObject* )node)->GetDataInstance()->GetParameter(OBJECT_EXPORTABLE_GEOMETRY, outdata);;
// check type
if (success && outdata.GetType() == CUSTOMDATATYPE_INEXCLUDE_LIST)
{
InExcludeData\* inexData = (InExcludeData\* )outdata.GetCustomDataType(CUSTOMDATATYPE_INEXCLUDE_LIST);
//............
}
}
_
}
But probably I'm doing something wrong since success is true but the GetType is 0 so I cannot read the values.
Thank you in advance for any tip!