Detect network rendering [SOLVED]
-
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
-
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