Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    BaseObject

    SDK Help
    0
    3
    257
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post