Dependency list and InExclude

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

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?

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

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

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 :)