THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/12/2007 at 11:15, xxxxxxxx wrote:
For the wait until the rendering is done, you could use a simple plugin to get the MSG_MULTI_RENDERNOTIFICATION message in Message(). A SceneHook plugin seems most appropo here.
For instance, I call this method from Message() when this particular message is sent to a tag plugin of mine (note the earliest version of C4D in which this possible) :
> #ifdef C4D_R85
> // IPPFigure.MsgRenderNotification - Message MSG_MULTI_RENDERNOTIFICATION
> //*---------------------------------------------------------------------------*
> Bool IPPFigure::MsgRenderNotification(BaseTag* tag, RenderNotificationData* rnd)
> //*---------------------------------------------------------------------------*
> {
> // Render Notification for Showing/Hiding BodyParts in Render
> if (!rnd) return TRUE;
> // Start Editor or External Render (set Render visibility)
> if (rnd->start || (rnd->external && (rnd->doc != GetActiveDocument())))
> {
> VisibilityRender(tag);
> MVisibilityRender(tag);
> }
> // End Editor or External Render (restore Editor visibility)
> else
> {
> VisibilityEditor(tag);
> MVisibilityEditor(tag);
> }
> return TRUE;
> }
> #endif