THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/04/2010 at 08:47, xxxxxxxx wrote:
Cinema 4D Version: 10-11.5
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
I have a tool that purely generates custom data and does not modify the scene. However, I would like to add my custom data to the undo list. Is it possible? There is no CopyTo function and undo is not added to the c4d undo stack.
What are my options?
On 05/04/2010 at 09:04, xxxxxxxx wrote:
Could you possibly use a SceneHookData? It seems to inherit from a NodeData which has the CopyTo() function. I don't know if it is of any use, though in your situation.
On 05/04/2010 at 09:10, xxxxxxxx wrote:
that´s actually a good idea. I´ll try that. Thanks for pointing it out.
On 05/04/2010 at 09:21, xxxxxxxx wrote:
Darn, doesn´t work in my case with a scenehook. thx anyway dan.
So still looking for a working option.
On 05/04/2010 at 09:40, xxxxxxxx wrote:
Yeah, on double checking, the only way to add an undo is with BaseDocument::AddUndo(), and a Scene Hook isn't associated with a document like objects and tags are.
Could you possibly use a hidden tag? The only thing I could see with that is which object it would be on, and what if the user deletes that object. It's too bad there's no way to create a hidden object.
On 05/04/2010 at 09:45, xxxxxxxx wrote:
The problem is that my tool doesn´t edit the scene or current object. It also works in any empty scene so that kind of erases such options.