Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

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

    Cinema 4D SDK
    sdk c++
    3
    3
    528
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      victor
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by

        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

        MAXON SDK Specialist

        MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by

          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

          MAXON SDK Specialist
          developers.maxon.net

          1 Reply Last reply Reply Quote 0
          • First post
            Last post