THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/12/2004 at 06:31, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
hi,
my problem is, that my plugin finds all claudebonet tags, but the datacount is wired, i can´t get the right count of elements/vertices per cb-tag
code:
BaseTag *tag = obj->GetFirstTag();
int i=0; int count;
char ibuffer [33], cbbuffer [33];
while(tag->GetType() == Tclaudebonet)
{
VariableTag *gtag = (VariableTag * )tag;
Real *cnt = (Real* )gtag->GetDataAddress();
//count = sizeof(cnt) / sizeof(cnt[0]);
count=0;
LONG anz = cnt[count];
while(anz != NULL)
{
count++;
anz = cnt[count];
}
//CBs ausgeben
GePrint(itoa(i,ibuffer,10));
GePrint(itoa(count,cbbuffer,10));
//zum nächsten Tag gehen
tag = tag->GetNext();
//CBs zaehlen
i++;
strcpy(ibuffer,"");
strcpy(cbbuffer,"");
}