Checking for NetRender and TeamRender

On 28/06/2014 at 14:17, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   14 
Platform:      Mac OSX  ; 
Language(s) :     C++  ;

---------
My plugins are protected by checking for a registration file.
However, I don't need (or should) check for that registration file if the plugin is being loaded in a client machine.
How can I check if the machine is a client machine for NetRender or TeamRender?

I believe that, for NetRender (versions prior to R15) it is something like this:

if (GeGetVersionType() & VERSIONTYPE_NET_CLIENT) client = TRUE;

But will this also work for R15 TeamRender?
If not, how to check if my plugin is being loaded in version 15 (and up) and if it is a client machine?

On 30/06/2014 at 07:51, xxxxxxxx wrote:

Would a simple

  
if (IsNet())...   

be enough? And would it work for R14 and R15?

On 30/06/2014 at 09:08, xxxxxxxx wrote:

Using IsNet() is enough, returns True in Team- and NET Render.

Best,
-Niklas

On 30/06/2014 at 09:13, xxxxxxxx wrote:

GREAT!! 🙂
Thank you.