On 06/09/2016 at 12:07, xxxxxxxx wrote:
Originally posted by xxxxxxxx
When starting the "render in pictureviewer" the "message" method issues
an event type "MSG_MULTI_DOCUMENTCLONED" meaning that the document has
been cloned. This explains that all variables of my classes that I
prepared before rendering are unset.Is there anything I can do to avoid that the document is cloned during render time ?thanks.
No. That's the way Cinema works when you render to the PV. You need to make sure that any class-level variables are correctly copied to the clone by implementing CopyTo() in all such classes. If you do that it should work fine, but you also need to remember that with any dynamic system the variables in one frame depend on previous frames. In other words, if you play your animation to frame x and then render to PV, it may not be the same as rendering in the viewport. If that happens you must render from the start to frame x to ensure everything is in the correct state.
Steve