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

    Load/Save Materials [SOLVED]

    SDK Help
    0
    5
    531
    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 09/05/2016 at 06:49, xxxxxxxx wrote:

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

      ---------
      Part of my current project will involve loading and saving of Presets.  The Presets will include material information associated with the current settings. Instead of just saving out particular channel settings and texture images (to be reconstructed and possibly missing user-set information), it would be better to save actual materials.  And I realize that C4D can save and load materials using the Material Manager but there doesn't appear to be any API support.  The material 'files' themselves would be referenced by the Preset file (by relative path).

      What suggestions do you have?

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

        On 09/05/2016 at 10:11, xxxxxxxx wrote:

        You could just create a basedocument, insert the material and save that document (with only the material in it) I guess.

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

          On 09/05/2016 at 14:17, xxxxxxxx wrote:

          That might be the only satisfactory solution.  Appears as if the file saved from the Material Manager is a .c4d document file though it doesn't include the extension.

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

            On 10/05/2016 at 01:19, xxxxxxxx wrote:

            Hello,

            the "Save Materials as..." function indeed just saves a BaseDocument containing the materials. This should be easily reproducible with the API.

            Best wishes,
            Sebastian

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

              On 10/05/2016 at 15:00, xxxxxxxx wrote:

              Thanks, Sebastian and Samir.  You can mark this as 'SOLVED'. 🙂

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