On 28/03/2014 at 12:44, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
I can't figure out how to get at the items inside of an In/Exclude gizmo when it's created with User Data.
I can get the items from the In/Exclude gizmo just fine when it's created in my plugin code.
But for some strange reason. I can't get at them if it's created with User Data.
//The object that has the In/Exclude UD entry on it
BaseObject *obj = doc->SearchObject("HolderObject");
//Get the master UD container
DynamicDescription *ud = obj->GetDynamicDescription();
//Get the first UD entry where the In/Exclude gizmo is sitting
DescID firstUD(DescLevel(ID_USERDATA, DTYPE_SUBCONTAINER,0), 1);
InExcludeData *in_ex = (InExcludeData* )ud->Find(firstUD); //<---Wrong?
LONG count = in_ex->GetObjectCount(); //<---Jibberish!!
GePrint(LongToString(count));
-ScottA