THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/10/2003 at 04:15, xxxxxxxx wrote:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
How can I retrieve user data (data that has been added with the "add userdata" dialog) from c++?
I would like to add custom data to objects (e.g. a billboard flag) and access this data during export to a custom file format.
On 07/10/2003 at 08:26, xxxxxxxx wrote:
12 views and no answer so far...
Is the question clear? I only have a german version of C4D, maybe the dialog is called differently. It can be found in the Attribute-Editor-Menu (last Entry).
On 12/10/2003 at 01:24, xxxxxxxx wrote:
Here's an example how to get all user data of an object: (GeDataToString() is my function.)
BaseObject* obj = doc->GetFirstObject();
DynamicDescription* dd = obj->GetDynamicDescription();
void* handle = dd->BrowseInit();
DescID id; const BaseContainer* bc;
while (dd->BrowseGetNext(handle, &id, &bc))
obj->GetParameter(id, data, 0);
GePrint(bc->GetString(DESC_NAME) + ": " + GeDataToString(data));