On 23/05/2013 at 02:07, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 14
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
I am trying to set a single custom string data in a document ready for undo/redo by doing:
doc->StartUndo();
doc->AddUndo(UNDOTYPE_???, ptr???);
doc->GetDataInstance()->SetString(<Some ID>, "VALUE");
doc->EndUndo();
1. Is SetString using the BaseContainer the right and preferred way of doing this?
2. What UNDO_TYPE??? do I have to supply for this?
3. Most interesting what void * ptr do I have to supply for this?
4. Is there a way to abort the change rather than only commit the change?