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

    Dependency list and InExclude

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 430 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 20/04/2010 at 14:31, xxxxxxxx wrote:

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

      ---------
      Hi,

      i am trying to figure out how i can add objects of an InExclude List to the dependency list. i thought it would be like this:

        
        InExcludeData *objektListe = (InExcludeData* )bc->GetCustomDataType(OBJEKTLISTE,CUSTOMDATATYPE_INEXCLUDE_LIST);  
        
        Bool dirty;  
        BaseObject* temp;  
        dirty = FALSE;  
        
        // start new list  
        op->NewDependenceList();      
        
        if (objektListe)   
        {  
            if (objektListe->GetObjectCount()>1)  
            {  
                for (int a=0;a<objektListe->GetObjectCount();a++)  
                {  
                    temp = (BaseObject* )(objektListe->ObjectFromIndex(doc,a));  
                    if (temp)  
                        op->AddDependence(hh,temp);  
                }  
            }  
        }  
        dirty = op->CheckCache(hh) || op->IsDirty(DIRTY_DATA);  
        dirty = dirty || !op->CompareDependenceList();  
        if (!dirty)   
        {  
            blDelete(main);                    
            op->TouchDependenceList();  
            return op->GetCache(hh);  
        }  
      

      but it doesnt work. the plugin is recreated all time...

      any idea what is wrong here??

      thanks in advance,
      ello

      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 20/04/2010 at 21:30, xxxxxxxx wrote:

        Where do you call your code?

        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 20/04/2010 at 22:20, xxxxxxxx wrote:

          i call it in GetVirtualObjects after i have read out the parameters

          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 21/04/2010 at 01:52, xxxxxxxx wrote:

            Well, have a look at the roundedtube example in the SDK, which does quite what you're trying to do.

            Hope it helps

            Kabe

            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 21/04/2010 at 08:31, xxxxxxxx wrote:

              thank you, but this still doeant handle the inexlude list.. thats the issue.

              cheers,
              ello

              edit: ok, it works now. seems i just placed the functions at the wrong place in my plugin. thanks again 🙂

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