This might be a long shot: Is there any way to detect, from a videopost plugin, is a render was started by a call to RenderDocument(), i.e., are there any special flags set that indicate this?
I assume you are aware of NodeData::Message(), MSG_MULTI_RENDERNOTIFICATION and RenderNotificationData. Have you checked the RENDERFLAGS (Link) ? NODOCUMENTCLONE and PREVIEWRENDER sound promising.
I'll look into those. I assumed that PREVIEWRENDER would be for viewport rendering, but after some tests it appears it is not. I'll try to check if it is set when rendering via RenderDocument()!
when you are using RenderDocument, you can set the RENDERFLAGS, so it can be virtually "anything"
Can i ask you why you need to know if a render have been started using the RenderDocument() function ?
"when you are using RenderDocument, you can set the RENDERFLAGS, so it can be virtually "anything""
-Yes, that makes sense. Thanks.
"Can i ask you why you need to know if a render have been started using the RenderDocument() function ?"
-In a custom renderer, I am exploring the possibility of sometimes (depending on user selected options) sending the rendered images to an external image viewer (not the c4d picture viewer). In this case, if RenderDocument() is called, we would still want to render to the c4d bitmap to make sure RenderDocument() correctly returns an image.
Anyway, as I said, this was a bit of a long shot. Since this appears not to be possible, I will explore other options.