THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/01/2007 at 04:22, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R 10
Platform: Windows ;
Language(s) : C++ ;
---------
Hi all!
I'm new here and just started looking into the SDK. I have many questions starting with this one.
I have been playing around alittle with tags, letting them modify the host object. I'd like to be able to undo these changes and therefore i tried this from within Execute(...) of my tag plugin:
doc->StartUndo();
doc->AddUndo(UNDO_CHANGE, op)
// translate or rot or somth.
op->Message(MSG_UPDATE);
doc->EndUndo();
The thing is that all undo method calls fail.
What are the criterions for StartUndo and the other fellows to be successful?
I haven't really gotten the feeling yet, for where and when things are to be done in the C4D SDK and i'd really appreciate some pointers.
/ Jonas