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

    Save Scene View As Thumbnail [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 302 Views
    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 Offline
      Helper
      last edited by

      On 18/04/2016 at 16:01, xxxxxxxx wrote:

      Is it possible to save what is currently displayed in the active scene view as a .jpg or .png to be used as a thumbnail?

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

        On 19/04/2016 at 02:01, xxxxxxxx wrote:

        Hello and welcome,

        it is not possible to access the framebuffer that is currently displayed in the editor window. But you could render the active document using RenderDocument() and the hardware renderer. This way you can obtain a BaseBitmap that shows the scene. You can then save this BaseBitmap using Save().

        What exactly do you mean with "thumbnail"? Do you mean the Preview Image of a Cinema 4D file? You can access that BaseBitmap with GetDocPreviewBitmap() or change the parameter settings of the Preview Command.

        Best wishes,
        Sebastian

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

          On 19/04/2016 at 17:26, xxxxxxxx wrote:

          GetDocPreviewBitmap is exactly what I'm looking for. Thank you so much!

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