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 25/01/2009 at 13:24, xxxxxxxx wrote:
User Information: Cinema 4D Version: 10.1 Platform: Windows ; Mac ; Language(s) : C++ ;
--------- Hi again,
in my Generator object, I have functions the work different depending from if the renderer is currently working. I query this as follows:
> CheckIsRunning(CHECKISRUNNING_EDITORRENDERING) || CheckIsRunning(CHECKISRUNNING_EXTERNALRENDERING)
CheckIsRunning(CHECKISRUNNING_EDITORRENDERING) || CheckIsRunning(CHECKISRUNNING_EXTERNALRENDERING)
Working fine so far. I use this e.g. to reduce the amount of clones that are created in the editor, while still generating the full amount of clones when rendering.
Now my problem: If the user presses "c" to convert my Generator Object, I also want to create the full amount of clones (like when converting a HyperNURBS, the "Renderer" subdivision is used). How can I determine if my plugin is being called in the context of normal editor display, or if it's being called because the user pressed "c"?
Thanks for help
Greetings, Jack
On 26/01/2009 at 05:53, xxxxxxxx wrote:
Check the VFlags of the HierarchyHelp passed to GetVirtualObjects().
Something like this:
> \> if(hh->GetVFlags() & VFLAG_INTERNALRENDERER) GePrint("internal"); \> else if(hh->GetVFlags() & VFLAG_EXTERNALRENDERER) GePrint("external"); \>
\> if(hh->GetVFlags() & VFLAG_INTERNALRENDERER) GePrint("internal"); \> else if(hh->GetVFlags() & VFLAG_EXTERNALRENDERER) GePrint("external"); \>
Pressing 'C' results in a VFLAG_EXTERNALRENDERER flag.
cheers, Matthias
On 26/01/2009 at 09:59, xxxxxxxx wrote:
Hm, that sounds useful. Thanks!
Is INTERNAL renderer the editor renderer?
On 26/01/2009 at 10:32, xxxxxxxx wrote:
Yes, internal is the editor renderer.