Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Render notification

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 279 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 24/01/2009 at 02:26, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5/11 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hello all,
      i am working on a kind of batch rendering pipeline tool, and i can know if a render is started in editor and PW, bur RenderNotificationData se stop message only if i render in editor.
      how i can have a message on render end when render is external?
      sdk documentaion say :

      Bool start_<_h4_>_

      Determines if this is a star_<_a class=silent href= "mk:@msitstore:c:\users\franz\documents\documenatzione%20sviluppo\c4dr105sdkchm2007-12-22.chm::/pages/ge_math/enum_boolconstants95.html#true1"_>_1"> color=#800080TRUE) or_<_a class=silent href= "mk:@msitstore:c:\users\franz\documents\documenatzione%20sviluppo\c4dr105sdkchm2007-12-22.chm::/pages/ge_math/enum_boolconstants95.html#false0"_>_ALSE0"> color=#800080FALSE) notification. Stop notifications are only sent if the document will not be deleted, which more or less only happens if there's an editor render.

      any idea ?
      Thanks in advance
      Franz

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 24/01/2009 at 08:11, xxxxxxxx wrote:

        Idea (called from Message()) : 🙂

        // 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);
                  isRendering =     TRUE;
             }
             // End Editor or External Render (restore Editor visibility)
             else
             {
                  VisibilityEditor(tag);
                  MVisibilityEditor(tag);
                  isRendering =     FALSE;
             }
             return TRUE;
        }

        If you need to know if the external renderer is finished and rnd->external isn't set properly (haven't checked), you can always set a Bool for start to know if the external renderer is rendering and then stopped.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 24/01/2009 at 09:22, xxxxxxxx wrote:

          Wow robert,
          Thanks i'll Try it 🙂
          All the Best
          Franz

          1 Reply Last reply Reply Quote 0
          • First post
            Last post