hi, this is my code. I can get InExludeData in Message(..) , but it can't work in ModifyObject(..),just print 0.where did i wrong?
hope for your help!
Bool TestObjectPlugin::ModifyObject(BaseObject * mod, BaseDocument * doc, BaseObject * op, const Matrix & op_mg, const Matrix & mod_mg, Float lod, Int32 flags, BaseThread * thread)
{
GeData gd;
BaseContainer* data = mod->GetDataInstance();
Bool success = data->GetParameter(DescID(MY_InExludeData),gd);
if(success){
if (gd.GetType() == CUSTOMDATATYPE_INEXCLUDE_LIST)
{
GePrint("Currect"_s);
}
else
{
GePrint(maxon::ToString(gd.GetType(), false));
}
}
}