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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    In/Exclude List in Draw Method...

    SDK Help
    0
    4
    325
    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 05/11/2003 at 08:51, xxxxxxxx wrote:

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

      ---------
      I am evaluating an in-exclude list in my Draw function in my object plugin but encounter a problem. I get the objects correctly but my draw function does not update correctly when I move the objects of the in-exclude list. I most of the time need to rotate the view to let my draw function update. Here is a snipped of code:

          
          
          InExcludeData *inex;  
            LONG xcnt=0;  
            InclusionTable* itable=NULL;  
              
            inex = (InExcludeData* )data->GetCustomDataType(INFORM_PLACE_1, CUSTOMDATATYPE_INEXCLUDE_LIST);   
            if(inex && inex->GetObjectCount()!=0)  
            {  
             itable = inex->BuildInclusionTable(doc,0);  
             xcnt = itable->GetObjectCount();  
             for(LONG n=0;n<xcnt;n++)  
             {  
              BaseObject* temp = (BaseObject* )itable->GetObject(n); if(!temp) continue;  
              PolygonObject *active = (PolygonObject* )GetDeformedObject(ToPoly(temp),doc);
          
          
          
          
          //NOW I AM DRAWING STUFF
          
          
          
          
          }
      

      Any idea what might help?
      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 05/11/2003 at 08:53, xxxxxxxx wrote:

        addition: I am drawing stuff that need the objects of course ;o) For example I am drawing a polygon or an edge...

        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 11/11/2003 at 16:14, xxxxxxxx wrote:

          I'm not sure I understand the problem. Do you get the right object pointers from the InExclude-list, but it still somehow interferes with your drawing?

          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 11/11/2003 at 16:32, xxxxxxxx wrote:

            yep, the object pointers are correct but the drawing is not updated correctly. When I for example put an object under my object plugin, then getvirtualobjects is called and everything is recalculated. I assume that my draw function is then called too?! (if not that seems to be the problem but afai can see it is called)
            But the editor view does not update the view according to my drawing operations until I manually rotate, pan or zoom the editor view. Only then everything is (re)drawn.
            Any ideas? 😕

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