Detect RenderDocument() in videopost
-
Hi!
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?Thanks
/Filip -
Hi,
I assume you are aware of
NodeData::Message()
,MSG_MULTI_RENDERNOTIFICATION
andRenderNotificationData
. Have you checked theRENDERFLAGS
(Link) ?NODOCUMENTCLONE
andPREVIEWRENDER
sound promising.Cheers
zipit -
Thanks,
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()!/Filip
-
hello,
when you are using
RenderDocument
, you can set theRENDERFLAGS
, 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 ?
Cheers
Manuel -
@m_magalhaes
"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.
Thanks!
/Filip