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