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

    Detect if document is being rendered in ModifyObject

    Cinema 4D SDK
    c++ windows macos r20 r21
    2
    3
    463
    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.
    • N
      neon
      last edited by

      Hello Plugincafe,
      as the title implies I want to know wether the user is currently rendering the document => in the editor,
      or in the picture viewer. I want to change settings of my modifier accordingly. (like the supdivision surface with supdivision editor/render).
      What I have always done is check if the current document is the same as passed in ModifyObject (which works for picture viewer as the document is copied for rendering) but I don't know if this is the indended way of doing it or if there is somethihng else. In addition I want to do the same once the user renders in the editor, which my approach does not cover.
      Is ther an "easy" way to accomplish this?

      Best Regards,
      Florian

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

        Hi,

        you are informed in NodeData::Message() of upcoming renderings via MSG_MULTI_RENDERNOTIFICATION. The message is accompanied by RenderNotificationData which contain these flags.

        Cheers
        zipit

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • N
          neon
          last edited by

          Hey zipit,
          thanks for the answer!

          Exactly what I needed!

          Best Regards,
          Florian

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