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
    1. Maxon Developers Forum
    2. bioquet
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by bioquet

    • B

      Displacer Deformer with Mograph Camera Shader not working

      Cinema 4D SDK
      • s26 python • • bioquet
      3
      0
      Votes
      3
      Posts
      495
      Views

      B

      Hello,
      Thanks for your complete answer.
      I think I will not start in thread management, but opted for your last solution which will still go through an external image but in an automated way by a python script.
      Thanks again.

    • B

      RenderDocument/PythonCallBack : how to display progress prints during the render

      Cinema 4D SDK
      • python s26 windows • • bioquet
      4
      0
      Votes
      4
      Posts
      723
      Views

      ferdinandF

      Oh,

      my bad, I did overlook that you flagged this as S26. Yes, mxutils is a 2024+ feature. I used it here to carry out type checks, e.g., that a document or bitmap are not null/none. The code will run without them, but it will fail more gracefully with these checks.

      You could replace these calls with manual checks:

      bmp: c4d.bitmaps.BaseBitmap = c4d.bitmaps.MultipassBitmap( int(rData[c4d.RDATA_XRES]), int(rData[c4d.RDATA_YRES]), c4d.COLORMODE_RGB)) if bmp is None: # or more precise: if not isinstance(bmp, c4d.bitmaps.BaseBitmap) ... raise MemoryError("Failed to allocate bitmap.")

      Cheers,
      Ferdinand