Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/08/2010 at 12:58, xxxxxxxx wrote:
User Information: Cinema 4D Version: Platform: Language(s) : C++ ;
--------- The flag to detect preview rendering I found. How can I detect the editor view is active and not the rendering engine?
On 24/08/2010 at 13:46, xxxxxxxx wrote:
See CheckIsRunning() in the C++ SDK documentation.
On 02/09/2010 at 03:25, xxxxxxxx wrote:
A shader can check the VolumeData's RayParameter.
For example this is a shader's output routine. It outputs a different color depending if it's rendered within the editor or the picture viewer.
Vector MandelbrotData::Output(PluginShader *chn, ChannelData *cd) { if (cd->vd) { RayParameter *rp = cd->vd->GetRayParameter(); if (rp) { if (rp->internal_render) return Vector(1.0,0.0,0.0); } } return 1.0; }
cheers, Matthias