THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/03/2011 at 14:18, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
Hello,
I would like to Iterate through the children of a particular object in the OM. Let's call this object BOB. So I would like to check first to see if BOB has any children.. So I do this with
if(BOB->GetDown()){
//Do Something
}
Now inside of that If statement I would like to iterate through all of the children that BOB has to see if any of his children have a particular name..
so in my head it looks like this..
if(BOB->GetDown()){
for(BOB->GetDown() ; BOB->GetLast() ; BOB->GetDown->GetNext()){
GePrint(op->GetName());
}
}
So I have an idea of how it should be done but I am a little fuzzy on all the details. Could someone drop me a sample code of how I should do it?
Thanks so much..
~Shawn