THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/02/2003 at 03:28, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
isn't it possible to change data of a display tag?
tag = BaseTag::Alloc(Tdisplay);
if (tag)
{
op->InsertTag(tag, NULL);
cData = tag->GetDataInstance();
cData->SetBool(DISPLAYTAG_AFFECT_DISPLAYMODE, TRUE);
cData->SetLong(DISPLAYTAG_DISPLAYMODE, DISPLAYTAG_DISPLAYMODE_WIREFRAME);
}
This code will insert the tag, but container data is not affected!?
To verify the ID values, I tried this:
BaseTag *tag = op->GetTag(Tdisplay);
if (tag)
{
BaseContainer *cData = tag->GetDataInstance();
LONG i;
GePrint("Searching ID...");
for (i=1000; i<100000; i++)
{
if (cData->GetLong(i) == DISPLAYTAG_DISPLAYMODE_WIREFRAME)
GePrint("ID:" + LongToString(i));
}
}
Nothing. I can change any value using the gui of the tag without any effect in the container data.
What's wrong?
Analogous to Tphong and SetPhong(...), I looked for a method like "SetDisplay(...)"; without any success.
Klaus Heyne