Implementing different render/editor settings?

On 26/12/2016 at 18:54, xxxxxxxx wrote:

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

How does the SDS/HyperNURBS object determine whether or not to use the Editor or Render subdivision settings?

I'm writing an object generator plugin that could greatly benefit from two separate settings to control the precision of the internal calculations. One for the editor to keep the viewport nice and fast, and another for the actual render, which would be significantly slower (but at that point, a few seconds of preparation time hardly matters).

What is the preferred way to do this?


On 27/12/2016 at 02:55, xxxxxxxx wrote:


In ObjectData::GetVirtualObjects() check the flags returned by hh- >GetBuildFlags(). If BUILDFLAGS_EXTERNALRENDERER or BUILDFLAGS_INTERNALRENDERER are set then this is a call from a rendering process.
In ObjectData::Execute() check the EXECUTIONFLAGS flags for EXECUTIONFLAGS_RENDER.

On 27/12/2016 at 17:49, xxxxxxxx wrote:

Awesome! Thank you very much!