THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/12/2012 at 09:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
Can anyone tell me how to add a new user data item to a Group type UD entry?
I know how to create them individually like this:
BaseDocument *doc = GetActiveDocument();
BaseObject *obj = doc->GetActiveObject();
DynamicDescription *dd = obj->GetDynamicDescription();
BaseContainer groupContainer;
dd->FillDefaultContainer(groupContainer, DTYPE_GROUP, "New Group");
DescID groupID = dd->Alloc(groupContainer);
dd->Set(groupID, groupContainer, obj);
BaseContainer realContainer;
dd->FillDefaultContainer(realContainer, DTYPE_REAL, "New Real");
DescID realID = dd->Alloc(realContainer);
dd->Set(realID, realContainer, obj);
But how do I put that real UD inside the Group UD?
-ScottA