Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    objects visible in viewport

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 217 Views
    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 Offline
      Helper
      last edited by

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

      On 25/06/2009 at 08:32, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ; Mac  ;  
      Language(s) :     C++  ;

      ---------Hello All,
      i there a fast way to know which objects are visible in current view in getcursorinfo in tooldata ?
      my first try was with C4DObjectlist and SelectionListCreate, but i have a link problem on this function objlist->GetObject(f)
      here my complete code, some other c4dobjectlist works fine ?!?!?

      _

          
          
           _ C4DObjectList *objlist = C4DObjectList::Alloc();
          
          
          
          
          AtomArray *myarray = AtomArray::Alloc();
          
          
          
          
          
          
          
          SelectionListCreate(doc,NULL,bd,dx,dy,NULL,objlist);
          
          
          
          
          
          
          
          if (objlist )
          
          
          
          
          {
          
          
          
          
           
          
          
          
          
          LONG f; 
          
          
          
          
          for (f = 0; f<objlist->GetCount();f++)
          
          
          
          
          {
          
          
          
          
          myarray->Append(objlist->GetObject(f));
          
          
          
          
          GePrint(LongToString(objlist->GetCount()));
          
          
          
          
          }
          
          
          
          
          } _
      

      Al The Best
      Franz_

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

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

        On 26/06/2009 at 01:03, xxxxxxxx wrote:

        Any Help ? 🙂
        Franz

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