THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/01/2006 at 09:51, xxxxxxxx wrote:
Cinema 4D Version: 9.0+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
OK I've got the AM description browsing working, but I want to skip the object's Coordinates Tab in browsing. How would I do that.
On 26/01/2006 at 11:47, xxxxxxxx wrote:
You can do this by ignoring any element whose groupid is ID_BASEOBJECT_GROUP1 or whose group had that groupid etc. This code will show you how it looks:
void* h = desc->BrowseInit();
const BaseContainer* bc = 0;
DescID id, groupid, scope;
while (desc->GetNext(h, &bc, id, groupid))
GePrint(bc->GetString(DESC_NAME) + " " + DescIDToString(id) + " : " + DescIDToString(groupid));
GePrint(LongToString(groupid == DescID(ID_BASEOBJECT_GROUP1)));
The test in this code is incomplete of course. You will have to keep track of the groupid ancestry as you go along, so that group within groups will work. (Or you could do it the brute-force way and jump directly from GROUP1 to ID_OBJECTPROPERTIES, or the next group of interest (a bit unsafe).
On 26/01/2006 at 17:16, xxxxxxxx wrote:
Ah! OK, I see. I think I wasn't keeping track of the "groupid ancestry" when I tried it out. Thanks.