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
    • Register
    • Login

    Set RenderData framerate causing C4D to crash

    Bugs
    python 2025
    3
    4
    1.0k
    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.
    • chuanzhenC
      chuanzhen
      last edited by

      Hi,
      use bellow code will causing C4D to crash

      import c4d
      
      doc: c4d.documents.BaseDocument  # The currently active document.
      op: c4d.BaseObject | None  # The primary selected object in `doc`. Can be `None`.
      
      def main() -> None:
          rd = c4d.documents.RenderData()
          rd[c4d.RDATA_FRAMERATE] = 2.0
      
      
      if __name__ == '__main__':
          main()
      

      safe setting code:

          rd = c4d.documents.RenderData()
          data = rd.GetDataInstance()
          data[c4d.c4d.RDATA_FRAMERATE] = 2.0
      
      
      

      bug?

      相信我,可以的!

      i_mazlovI 1 Reply Last reply Reply Quote 0
      • i_mazlovI
        i_mazlov @chuanzhen
        last edited by

        Hi @chuanzhen,

        The issue is not reproducible on my machine with C4D: 2025.2.1 (Build 2025_2_1_10be3ac9d371_1759753353) Win

        Cheers,
        Ilia

        MAXON SDK Specialist
        developers.maxon.net

        chuanzhenC 1 Reply Last reply Reply Quote 0
        • chuanzhenC
          chuanzhen @i_mazlov
          last edited by

          @i_mazlov there is video, 2025.2.1,win11

          相信我,可以的!

          1 Reply Last reply Reply Quote 0
          • M
            m_adam
            last edited by

            Hi I was able to reproduce the issue and fix it for the next version.
            The bug is that setting RDATA_FRAMERATE require the RenderData to be part of a document in case the "Use Project Frame Rate" is enabled on the render settings. If this is enabled and this is enabled by default the value you enter will be disregarded. "Use Project Frame Rate" is a new setting added in 2025.2.

            I will ping you once the fix is available.
            Cheers,
            Maxime.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • M m_adam moved this topic from Cinema 4D SDK
            • First post
              Last post