THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/07/2003 at 22:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 7.303
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hi,
I want to change the text string value of a Primitive Text Object. I used the following code.
if(vObj->GetPrimitiveType()==1017) // if TEXT Object
{
var bc=vObj->GetContainer();
bc->SetData(PRIM_TEXT_TEXT, "Change");
vObj->SetContainer(bc);
}
GeEventAdd(DOCUMENT_CHANGED);
GeEventAdd(REDRAW_ALL);
Even though I use GeEventAdd(), I cannot see the new text, still it shows the old text. But from the object manager when I check, it has changed the text with new one. What could be the problem?