Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Detect network rendering [SOLVED]

    SDK Help
    0
    2
    328
    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.
    • H
      Helper
      last edited by

      On 17/03/2017 at 01:07, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   r18 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello everyone,

      I have a working plugin that creates a geometry object, this object is a kind of cache so it depends on a extenal file, I want to trigger a error message in case it cannot be found etc but I'd like to skip this error on network rendering to avoid blocking renderfarms etc.

      Is there any way to do that?

      Best regards, Víctor

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 17/03/2017 at 10:48, xxxxxxxx wrote:

        Hi Victor, thanks for writing us.

        With reference to your question I suggest to give a look at IsNet(), IsServer() and IsClient() which are pretty useful methods to understand the context in which Cinema is currently running and to accordingly operate in terms of error notification to the user. It could be also pretty relevant to have a look at the BaseDocument::GetNetRenderDocumentContext() which could help you to check if the document is currently handled inside a Team Render context and, also, here properly manage error notification.

        Best, Riccardo

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