BaseObject



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 23/11/2006 at 05:01, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9,603 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi,
    i have the definetion of this funtkion
    Code:
    void tree(BaseDocument *doc, BaseObject * op)
    {  while(op)
    {
     doc->SetActiveObject(op,Selection_ADD);
    tree(doc, op->GetDown());
    op = op->GetNext();
    }}
     
    So my question is how i get the first point of the tree (first baseobject) that i can walk through? That i can use it at this way:
    BaseObject op .......?
    tree(doc,op);
    Thanks



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 23/11/2006 at 06:29, xxxxxxxx wrote:

    GetFirstObject return the first object of the document.

      
    BaseObject *op = doc->GetFirstObject();  
    tree(doc, op);  
    

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 23/11/2006 at 07:15, xxxxxxxx wrote:

    thx


Log in to reply