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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    How to know, if render external...

    SDK Help
    0
    5
    367
    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
      Helper
      last edited by

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

      On 02/07/2004 at 05:20, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.500 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      ... and get render fps?

      How i can detect a external rendering and use fps value for rendering?
      Frames per seconds (fps) rate on the document (in editor) and frames per seconds rate on rendering can be different.

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

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

        On 02/07/2004 at 11:08, xxxxxxxx wrote:

        A way I was doing it was checking when the Message MSG_MULTI_DOCUMENTCLONED was recieved in the Message() method.
         
        Because the external renderer makes a copy of the document, so this works

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

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

          On 04/07/2004 at 21:30, xxxxxxxx wrote:

          That sounds a bit fragile. I think it's better to check HierarchyHelper::GetVFlags(), RenderNotificationData::external or RayParameter::internal_render, depending on where you need the information.

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

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

            On 04/07/2004 at 22:53, xxxxxxxx wrote:

            Hi. Thx for answers.

            I get notification for external rendering with:

            Bool CarAnimTagPlugin::Message(GeListNode* pnodeMain, LONG longMsgType, void* pvData)
            {
                 if (longMsgType==MSG_MULTI_RENDERNOTIFICATION)
                      // begin of rendering
                 {
                      RenderNotificationData* prddData= (RenderNotificationData* ) pvData;
                      
                      if (prddData->start && prddData->external)
                      {
                           boRendExt= TRUE;
                      }
                      else
                      {     
                           boRendExt= FALSE;
                      }
                 }
                 
                 return TRUE;
            }

            But if i try to get frame rate of external rendering in Execute method with

            if (boRendExt)
                 {
                      RenderDate* prdateOlo= (BaseContainer* ) pdocMain->GetActiveRenderData();

            GePrint( "External render with frame rate of " +
                           LongToString(prdateOlo->GetLong(RDATA_FRAMERATE, 0))+ " frames per sec");
                 }

            i get always zero :(.

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

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

              On 06/07/2004 at 06:24, xxxxxxxx wrote:

              Ok. I found self the problem:
              The correct code is :

              if (boRendExt) // external rendering is started
                   {
                        longFps= pdocMain->GetActiveRenderData()->
                             GetData().GetLong(RDATA_FRAMERATE, 0); // get rendering frame rate
                   }
                   else
                   {
                        longFps= pdocMain->GetFps();
                   }

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