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

    Saving EXR?

    SDK Help
    0
    4
    320
    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
      Helper
      last edited by

      On 15/10/2015 at 06:40, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   17 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi there,

      I'm looking for compression options on saving MultipassBitmap as EXR file. As ZIP, PIZ, ZIPS, etc... How can we set it?

      Thanks,
      A.

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

        On 16/10/2015 at 03:51, xxxxxxxx wrote:

        Hi Ahmet,

        The BaseBitmap::Save() function has a data parameter, where you can pass additional configuration options.
        For EXR you pass a BaseContainer containing another BaseContainer at ID 0 with the actual settings.

        The second BaseContainer then contains the following settings:

        ID 0: Int32 value, the compression type (one from the list below)
        0 = NO_COMPRESSION
        1 = RLE_COMPRESSION
        2 = ZIPS_COMPRESSION
        3 = ZIP_COMPRESSION
        4 = PIZ_COMPRESSION
        5 = PXR24_COMPRESSION
        6 = B44_COMPRESSION
        7 = B44A_COMPRESSION

        ID 1: Boolean value, clamp to 16-Bit float

        There's also another thread showing about Setting the format options of an OpenEXR in the render settings.

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

          On 16/10/2015 at 06:21, xxxxxxxx wrote:

          Originally posted by xxxxxxxx

          Hi Ahmet,
          The BaseBitmap::Save() function has a data parameter, where you can pass additional configuration options.
          For EXR you pass a BaseContainer containing another BaseContainer<span style="line-height: 16.8px;"> </span><span style="line-height: 16.8px;">at ID 0</span><span style="line-height: 1.4;"> with the actual settings.</span>
          The second BaseContainer then contains the following settings:
          ID 0: Int32 value, the compression type (one from the list below)
          0 = NO_COMPRESSION
          1 = RLE_COMPRESSION
          2 = ZIPS_COMPRESSION
          3 = ZIP_COMPRESSION
          4 = PIZ_COMPRESSION
          5 = PXR24_COMPRESSION
          6 = B44_COMPRESSION
          7 = B44A_COMPRESSION
          <div style="line-height: 16.8px;">ID 1: Boolean value, clamp to 16-Bit float
          There's also another thread showing about Setting the format options of an OpenEXR in the render settings.

          Please note that setting these IDs on your own could break at some point in time in case their support in OpenEXR is removed or extended (e.g. the first versions of the EXR lib only had a fraction of these options).

          Best regards,

          Wilfried

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

            On 16/10/2015 at 10:37, xxxxxxxx wrote:

            Thanks for answers. I'll give a try like that.

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