THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/07/2004 at 05:56, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.500
Platform: Windows ;
Language(s) : C++ ;
---------
Hi!
I want to add a custom description to an object but nothing appears. What did i do wrong?
Code snippet in my PluginObject:
Bool ParamObject::GetDDescription(GeListNode* node, Description* description, LONG& flags)
{
DescLevel dl = DescLevel(0, DTYPE_REAL, 0);
DescID did = DescID(dl);
BaseContainer bc;
bc.SetReal(DESC_MIN, -1.0);
bc.SetReal(DESC_MAX, 100.0);
bc.SetString(DESC_NAME, "TestParameter");
bc.SetString(DESC_SHORT_NAME, "Param1");
bc.SetBool(DESC_ASKOBJECT, false);
bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_REAL);
if (!description->SetParameter(did, bc, DESCID_ROOT))
GePrint("Parameter doesnt work!");
flags |= DESCFLAGS_DESC_LOADED;
return (ObjectData::GetDDescription(node, description, flags));
}
thx, lawn