Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Detect RenderDocument() in videopost

    Cinema 4D SDK
    4
    5
    859
    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.
    • F
      Filip
      last edited by

      Hi!
      This might be a long shot: Is there any way to detect, from a videopost plugin, is a render was started by a call to RenderDocument(), i.e., are there any special flags set that indicate this?

      Thanks
      /Filip

      1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand
        last edited by ferdinand

        Hi,

        I assume you are aware of NodeData::Message(), MSG_MULTI_RENDERNOTIFICATION and RenderNotificationData. Have you checked the RENDERFLAGS (Link) ? NODOCUMENTCLONE and PREVIEWRENDER sound promising.

        Cheers
        zipit

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • F
          FilipM
          last edited by

          Thanks,
          I'll look into those. I assumed that PREVIEWRENDER would be for viewport rendering, but after some tests it appears it is not. I'll try to check if it is set when rendering via RenderDocument()!

          /Filip

          1 Reply Last reply Reply Quote 0
          • ManuelM
            Manuel
            last edited by

            hello,

            when you are using RenderDocument, you can set the RENDERFLAGS, so it can be virtually "anything"

            Can i ask you why you need to know if a render have been started using the RenderDocument() function ?

            Cheers
            Manuel

            MAXON SDK Specialist

            MAXON Registered Developer

            F 1 Reply Last reply Reply Quote 0
            • F
              Filip @Manuel
              last edited by

              @m_magalhaes

              "when you are using RenderDocument, you can set the RENDERFLAGS, so it can be virtually "anything""
              -Yes, that makes sense. Thanks.

              "Can i ask you why you need to know if a render have been started using the RenderDocument() function ?"
              -In a custom renderer, I am exploring the possibility of sometimes (depending on user selected options) sending the rendered images to an external image viewer (not the c4d picture viewer). In this case, if RenderDocument() is called, we would still want to render to the c4d bitmap to make sure RenderDocument() correctly returns an image.

              Anyway, as I said, this was a bit of a long shot. Since this appears not to be possible, I will explore other options.

              Thanks!
              /Filip

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