SOLVED How to check if the object/document in on Render Queue

We have a plugin that warms the user under some circumstances , if the user is using GUI we use a Messagebox meanwhile for a network render we use the log (to avoid freezing the farm).

The problem comes when the user opens it in Render Queue it seems that the document is open by C4D itself again and it triggers the MessageBox since

if (IsNet() || GeGetVersionType() == VERSIONTYPE::COMMANDLINE || GeGetVersionType() == VERSIONTYPE::CINEWARE )

Returns always false.

So my question is as well as I can check if I'm under network render (TeamRender) is there any other function or flag to check if I'm on Render Queue?

Thank you in advance.

Hi,

there's nothing to know if the current document is rendered with the Render Queue. To avoid confusion, you are talking about this Render queue also knowed as BatchRender?

The only way we think about would be to check:

  • if your ObjectData is in the same document than the active document, (GetActiveDocument vs ObjectData.GetDocument)
  • if the document is on the Render Queue
  • if the render queue is rendering

Hope that helped.

Cheers,
Manuel

Hi,

there's nothing to know if the current document is rendered with the Render Queue. To avoid confusion, you are talking about this Render queue also knowed as BatchRender?

The only way we think about would be to check:

  • if your ObjectData is in the same document than the active document, (GetActiveDocument vs ObjectData.GetDocument)
  • if the document is on the Render Queue
  • if the render queue is rendering

Hope that helped.

Cheers,
Manuel

Hello @victor,

without any further replies or questions, we will consider this thread as solved by Thursday and flag it accordingly.

Thank you for your understanding,
Ferdinand