THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/08/2003 at 08:10, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
to add parameters at runtime, I'm overriding GetDDescription of MaterialData with something like
if (!description || !node) return FALSE;
if (!description->LoadDescription(node->GetType())) return FALSE;
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_LONG);
bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_LONG);
bc.SetString(DESC_SHORT_NAME, "foo");
bc.SetString(DESC_NAME, "foobar");
if (!description->SetParameter(DescLevel(20000), bc, DescLevel(ID_OF_ONE_OF_MY_GROUPS)))
return FALSE;
flags |= DESCFLAGS_DESC_LOADED;
return MaterialData::GetDDescription(node, description, flags);
The number entry field itself appears in the Attribute Manager. The name of the parameter should appear left to it---but it doesn't.
Any ideas?
Thanks in advance!