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:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C++ ;
isn't it possible to change data of a display tag?
tag = BaseTag::Alloc(Tdisplay);
cData = tag->GetDataInstance();
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);
BaseContainer *cData = tag->GetDataInstance();
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.
Analogous to Tphong and SetPhong(...), I looked for a method like "SetDisplay(...)"; without any success.
On 27/02/2003 at 06:03, xxxxxxxx wrote:
please search this forum with a corresponding value. There was already a thread that solved this problem.
On 28/02/2003 at 10:12, xxxxxxxx wrote:
Thanks for the hint. But the thread you mean, handles with coffee and didn't solve the problem.
So, again a code snippet from the execute function of a plugin tag, assigned to the object, that also has the display tag:
BaseTag *dTag = op->GetTag(Tdisplay);
BaseContainer *dData = dTag->GetDataInstance();
The debugger does not show the name of the display tag!? Should it?
Is there something wrong with GetDataInstance?
On 28/02/2003 at 10:21, xxxxxxxx wrote:
sorry. My fault. Should have looked bette. HAven´t noticed you are working with C++.
Yes, GetDataInstance is sometimes not possible (don´t ask my why. There must be a reason but I don´t know it). Use GetData to get the BaseContainer and use SetData after changing properties. This will work for the Display Tag (had the same problem some time ago).