Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Is it possible to add an undo event that will take care of changes made when calling BaseDraw::SetSceneCamera?
Hi,
You can press ctrl+shift+Z to undo the viewport modification.
I don't think it's possible. The active camera link is stored inside the BaseDraw and you can't add the BaseDraw in the regular undo stack. (i did try, c4d isn't happy)
The only workaround i see would be:
If the scenehook found your null object:
Something that could tell you that the undo step is the step where you defined the camera.
Cheers, Manuel
hi,
there are two buffers for the undo, you can add an undo in the viewport stack using InitUndo but i guess you are talking about adding an undo step in the "regular" stack?
@m_magalhaes said in Undo SetSceneCamera:
I have been working with C4D for 12 years and I only just learned that "Undo View" actually existed.
But sadly the bd->InitUndo is not what I am after. Since I am wanting to call SetSceneCamera as part of a command operation. So I would like it if the user pressed the regular Ctrl-Z and it undid the changes to the view as well as undoing the SetSceneCamera call.
It doesn't seem like this is possible.
Hello @kbar,
without any further questions, we will consider this topic as solved by Tuesday, November the 2nd and flag it accordingly.
Thank you for your understanding, Ferdinand