THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/08/2010 at 09:04, xxxxxxxx wrote:
Cinema 4D Version: 11
Language(s) : C++ ;
just a small question.
Is it save to add or remove Objects from the vps->doc in a VideoPostData::Execute() call?
I tested it and it seems to work but can there be any problems with this approach?
Also in which state of the Execute function would that be save to do?
Until VP_SUBFRAME and vps->open it seems to work.
On 19/08/2010 at 02:22, xxxxxxxx wrote:
Afaik it's not allowed to modify the render document.
On 19/08/2010 at 08:42, xxxxxxxx wrote:
do you have any other ideas how we could do this in a VideoPost?
perhaps we could change the current doc when MSG_MULTI_RENDERNOTIFICATION is sent?
But i don't like the idea of changing the real document, as the changes are only meant for rendering.
On 24/08/2010 at 03:51, xxxxxxxx wrote:
Ok, changing the doc in RenderNotificationData seems to work.
And i guess it's safe to change the doc here, isn't it?
On 24/08/2010 at 06:38, xxxxxxxx wrote:
It is indeed possible to modify the document during MSG_MULTI_RENDERNOTIFICATION. Just make sure that you really own the document, for example, doc != GetActiveDocument().
On 24/08/2010 at 07:24, xxxxxxxx wrote:
ah, ok. thanks!